From 9dc57359b9e74ed6d8f74d17a72e00c73a67ce49 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Thu, 20 Nov 2014 12:30:04 +0100 Subject: [PATCH] csync db files: Hide after some commit/transactions. #2461 The shm and wal files are only created later. --- src/mirall/syncjournaldb.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mirall/syncjournaldb.cpp b/src/mirall/syncjournaldb.cpp index fca1c9e56..579bf575e 100644 --- a/src/mirall/syncjournaldb.cpp +++ b/src/mirall/syncjournaldb.cpp @@ -158,11 +158,6 @@ bool SyncJournalDb::checkConnect() return sqlFail("Set PRAGMA case_sensitivity", pragma1); } - // Hide 'em all! - FileSystem::setFileHidden(databaseFilePath(), true); - FileSystem::setFileHidden(databaseFilePath() + "-wal", true); - FileSystem::setFileHidden(databaseFilePath() + "-shm", true); - /* Because insert are so slow, e do everything in a transaction, and one need to call commit */ startTransaction(); @@ -335,6 +330,11 @@ bool SyncJournalDb::checkConnect() // don't start a new transaction now commitInternal(QString("checkConnect End"), false); + // Hide 'em all! + FileSystem::setFileHidden(databaseFilePath(), true); + FileSystem::setFileHidden(databaseFilePath() + "-wal", true); + FileSystem::setFileHidden(databaseFilePath() + "-shm", true); + return rc; }