From ebb636478a51b67cd107fa15d837d57f609e0e7a Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Fri, 10 Nov 2023 14:48:26 +0100 Subject: [PATCH] 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 --- src/libsync/syncengine.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libsync/syncengine.cpp b/src/libsync/syncengine.cpp index d76c11edaaeab..e67943bb211c1 100644 --- a/src/libsync/syncengine.cpp +++ b/src/libsync/syncengine.cpp @@ -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;