Actually create readonly connection when asked
This commit is contained in:
parent
19fb00b5b7
commit
0f67a5ba2f
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user