From 89c155bc6db4ae8e0af7658ca8ca896d1f285937 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 datafingerprint restore sync mode if a data fingerprint has been saved in teh 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 07befe1844c93..e4e76a7ff79b7 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;