Skip to content

Commit

Permalink
avoid restore algorithm by setting the data fingerprint from sync DB
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mgallien committed Nov 10, 2023
1 parent 2cc23de commit 89c155b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libsync/syncengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 89c155b

Please sign in to comment.