mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 01:05:19 +03:00
Actually create readonly connection when asked
This commit is contained in:
@@ -100,7 +100,7 @@ namespace Emby.Server.Implementations.Data
|
|||||||
|
|
||||||
protected SqliteConnection GetConnection(bool readOnly = false)
|
protected SqliteConnection GetConnection(bool readOnly = false)
|
||||||
{
|
{
|
||||||
var connection = new SqliteConnection($"Filename={DbFilePath}");
|
var connection = new SqliteConnection($"Filename={DbFilePath}" + (readOnly ? ";Mode=ReadOnly" : string.Empty));
|
||||||
connection.Open();
|
connection.Open();
|
||||||
|
|
||||||
if (CacheSize.HasValue)
|
if (CacheSize.HasValue)
|
||||||
|
|||||||
Reference in New Issue
Block a user