aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Persistence/SqliteExtensions.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-06-15 14:56:37 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-06-15 14:56:37 -0400
commit023b12a798d6bf475a3b20488c1921e7fdb68dc5 (patch)
treea58dc949d8c89af0cfa9d52a015d9c92975e1dc1 /MediaBrowser.Server.Implementations/Persistence/SqliteExtensions.cs
parent6118e5f966c4f26e44c4028ed946a701ec25e8be (diff)
update recording format
Diffstat (limited to 'MediaBrowser.Server.Implementations/Persistence/SqliteExtensions.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Persistence/SqliteExtensions.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Persistence/SqliteExtensions.cs b/MediaBrowser.Server.Implementations/Persistence/SqliteExtensions.cs
index 73b3a2253..d5b582da5 100644
--- a/MediaBrowser.Server.Implementations/Persistence/SqliteExtensions.cs
+++ b/MediaBrowser.Server.Implementations/Persistence/SqliteExtensions.cs
@@ -26,6 +26,8 @@ namespace MediaBrowser.Server.Implementations.Persistence
throw new ArgumentNullException("dbPath");
}
+ SQLiteConnection.SetMemoryStatus(false);
+
var connectionstr = new SQLiteConnectionStringBuilder
{
PageSize = 4096,
@@ -41,8 +43,10 @@ namespace MediaBrowser.Server.Implementations.Persistence
var connectionString = connectionstr.ConnectionString;
- //logger.Info("Sqlite {0} opening {1}", SQLiteConnection.SQLiteVersion, connectionString);
- SQLiteConnection.SetMemoryStatus(false);
+ if (!enablePooling)
+ {
+ logger.Info("Sqlite {0} opening {1}", SQLiteConnection.SQLiteVersion, connectionString);
+ }
var connection = new SQLiteConnection(connectionString);