mirror of https://github.com/nextcloud/desktop
avoid restore algorithm by setting the data fingerprint from sync DB
avoid single file sync to switch to data fingerprint restore sync mode if a data fingerprint has been saved in the database but missed during single file sync Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
c052ee19b9
commit
f8730b6bfb
|
@ -686,6 +686,8 @@ void SyncEngine::startSync()
|
|||
}
|
||||
|
||||
if (singleItemDiscoveryOptions().isValid() && singleItemDiscoveryOptions().discoveryDirItem) {
|
||||
const auto databaseFingerprint = _journal->dataFingerprint();
|
||||
_discoveryPhase->_dataFingerprint = databaseFingerprint;
|
||||
ProcessDirectoryJob::PathTuple path = {};
|
||||
path._local = path._original = path._server = path._target = singleItemDiscoveryOptions().discoveryPath;
|
||||
|
||||
|
|
Loading…
Reference in New Issue