From 1d4d036fb704daff6f99e93fd782917909d7e4d4 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 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;