Skip to content

Commit

Permalink
only use VFS update instruction when sync engine would do nothing
Browse files Browse the repository at this point in the history
will ensure we do not erroneously use this instruction when we should
not

Signed-off-by: Matthieu Gallien <[email protected]>
  • Loading branch information
mgallien committed Jun 20, 2024
1 parent 29df094 commit f915d2a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libsync/discovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1681,8 +1681,9 @@ void ProcessDirectoryJob::processFileFinalize(
}

if (_discoveryData->_syncOptions._vfs &&
item->_type == CSyncEnums::ItemTypeFile &&
!_discoveryData->_syncOptions._vfs->isPlaceHolderInSync(_discoveryData->_localDir + path._local)) {
(item->_type == CSyncEnums::ItemTypeFile || item->_type == CSyncEnums::ItemTypeDirectory) &&
item->_instruction == CSyncEnums::CSYNC_INSTRUCTION_NONE &&
!_discoveryData->_syncOptions._vfs->isPlaceHolderInSync(_discoveryData->_localDir + path._local)) {
item->_instruction = CSyncEnums::CSYNC_INSTRUCTION_UPDATE_VFS_METADATA;
}

Expand Down

0 comments on commit f915d2a

Please sign in to comment.