Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Kamm <kamm@incasoftware.de>2014-11-20 14:30:04 +0300
committerChristian Kamm <kamm@incasoftware.de>2014-11-20 14:30:04 +0300
commit9dc57359b9e74ed6d8f74d17a72e00c73a67ce49 (patch)
tree32531eb75a11ff0093b37777dab6ff86cc059163 /src
parent06b31d7cf07710c7b2435d761cc70b2e8f5a2059 (diff)
csync db files: Hide after some commit/transactions. #2461
The shm and wal files are only created later.
Diffstat (limited to 'src')
-rw-r--r--src/mirall/syncjournaldb.cpp10
1 files 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;
}