mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-21 16:25:28 +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)
|
||||
{
|
||||
var connection = new SqliteConnection($"Filename={DbFilePath}");
|
||||
var connection = new SqliteConnection($"Filename={DbFilePath}" + (readOnly ? ";Mode=ReadOnly" : string.Empty));
|
||||
connection.Open();
|
||||
|
||||
if (CacheSize.HasValue)
|
||||
|
||||
Reference in New Issue
Block a user