Skip to content

Commit

Permalink
Merge pull request #6827 from nextcloud/bugfix/doNotUpdateVfsMetadata…
Browse files Browse the repository at this point in the history
…WhenSomethingElseIsNeeded

only use VFS update instruction when sync engine would do nothing
  • Loading branch information
mgallien authored Jun 20, 2024
2 parents b1269d4 + 03c4864 commit 07b182d
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 07b182d

Please sign in to comment.