mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 01:34:45 +03:00
Revert "chore: Add a read only connection for routes like Shows/NextUp"
This commit is contained in:
@@ -98,16 +98,8 @@ namespace Emby.Server.Implementations.Data
|
||||
/// <value>The write connection.</value>
|
||||
protected SQLiteDatabaseConnection WriteConnection { get; set; }
|
||||
|
||||
protected SQLiteDatabaseConnection ReadConnection { get; set; }
|
||||
|
||||
protected ManagedConnection GetConnection(bool readOnly = false)
|
||||
{
|
||||
if (readOnly)
|
||||
{
|
||||
ReadConnection ??= SQLite3.Open(DbFilePath, ConnectionFlags.ReadOnly, null);
|
||||
return new ManagedConnection(ReadConnection, null);
|
||||
}
|
||||
|
||||
WriteLock.Wait();
|
||||
if (WriteConnection != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user