Vfs: Clarify SyncEngine::wipeVirtualFiles()

Possibly the behavior should actually change and the function should
de-placeholder all items, not just dehydrated ones.
This commit is contained in:
Christian Kamm 2019-01-23 12:58:14 +01:00 committed by Kevin Ottens
parent 5820ac8b41
commit f89450648f
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2
2 changed files with 5 additions and 1 deletions

View file

@ -1044,7 +1044,8 @@ void SyncEngine::wipeVirtualFiles(const QString &localPath, SyncJournalDb &journ
journal.forceRemoteDiscoveryNextSync();
// Postcondition: No ItemTypeVirtualFile / ItemTypeVirtualFileDownload left in the db
// Postcondition: No ItemTypeVirtualFile / ItemTypeVirtualFileDownload left in the db.
// But hydrated placeholders may still be around.
}
void SyncEngine::abort()

View file

@ -128,6 +128,9 @@ public:
*
* Particularly useful when switching off vfs mode or switching to a
* different kind of vfs.
*
* Note that *hydrated* placeholder files might still be left. These will
* get cleaned up by Vfs::unregisterFolder().
*/
static void wipeVirtualFiles(const QString &localPath, SyncJournalDb &journal, Vfs &vfs);