mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 21:46:03 +03:00
csync db files: Hide after some commit/transactions. #2461
The shm and wal files are only created later.
This commit is contained in:
parent
06b31d7cf0
commit
9dc57359b9
1 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue