diff options
author | methodus <methodus@web.de> | 2012-12-01 12:56:53 +0100 |
---|---|---|
committer | methodus <methodus@web.de> | 2012-12-01 12:56:53 +0100 |
commit | c12abd3839cc6b139ebd1bcb172a26b30b5d540f (patch) | |
tree | 240d8513f867551ef9a550b9f01c1340e1c8437e /media | |
parent | 03ff27ec6a8e684dfa062d57ddd4229a3031c579 (diff) | |
download | vdr-plugin-upnp-c12abd3839cc6b139ebd1bcb172a26b30b5d540f.tar.gz vdr-plugin-upnp-c12abd3839cc6b139ebd1bcb172a26b30b5d540f.tar.bz2 |
Removed VACUUM from HouseKeeper.
Diffstat (limited to 'media')
-rw-r--r-- | media/mediaManager.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/media/mediaManager.cpp b/media/mediaManager.cpp index 5618817..ef4e1cf 100644 --- a/media/mediaManager.cpp +++ b/media/mediaManager.cpp @@ -466,11 +466,6 @@ cMediaManager::BrowseFlag cMediaManager::ToBrowseFlag(const std::string& browseF } void cMediaManager::Housekeeping(){ - try { - connection.execute("VACUUM"); - } catch (const std::exception& e) { - esyslog("UPnP\tFailed to vacuum database '%s': '%s'", databaseFile.c_str(), e.what()); - } } bool cMediaManager::Initialise(){ @@ -625,7 +620,7 @@ bool cMediaManager::CheckIntegrity(){ connection.execute("PRAGMA page_size = 4096"); connection.execute("PRAGMA cache_size = 16384"); connection.execute("PRAGMA temp_store = MEMORY"); - connection.execute("PRAGMA synchronous = OFF"); + connection.execute("PRAGMA synchronous = NORMAL"); connection.execute("PRAGMA locking_mode = EXCLUSIVE"); tntdb::Statement checkTable = connection.prepare( |