mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-10-10 05:49:08 +00:00
remove shrink mem timer
This commit is contained in:
parent
e15ea55b56
commit
ee2fbf59d0
8 changed files with 1 additions and 146 deletions
|
|
@ -32,8 +32,6 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
|||
_logger = logManager.GetLogger(GetType().Name);
|
||||
}
|
||||
|
||||
private SqliteShrinkMemoryTimer _shrinkMemoryTimer;
|
||||
|
||||
/// <summary>
|
||||
/// Opens the connection to the database
|
||||
/// </summary>
|
||||
|
|
@ -54,8 +52,6 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
|||
_connection.RunQueries(queries, _logger);
|
||||
|
||||
PrepareStatements();
|
||||
|
||||
_shrinkMemoryTimer = new SqliteShrinkMemoryTimer(_connection, _writeLock, _logger);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -286,12 +282,6 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
|||
{
|
||||
lock (_disposeLock)
|
||||
{
|
||||
if (_shrinkMemoryTimer != null)
|
||||
{
|
||||
_shrinkMemoryTimer.Dispose();
|
||||
_shrinkMemoryTimer = null;
|
||||
}
|
||||
|
||||
if (_connection != null)
|
||||
{
|
||||
if (_connection.IsOpen())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue