Skip to content

Commit

Permalink
fix regression with VFS update metadata instruction
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Gallien <[email protected]>
  • Loading branch information
mgallien committed May 14, 2024
1 parent bbe9712 commit ee28255
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/libsync/discovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1685,6 +1685,7 @@ void ProcessDirectoryJob::processFileFinalize(

if (_discoveryData->_syncOptions._vfs &&
item->_type == CSyncEnums::ItemTypeFile &&
item->_instruction == CSyncEnums::CSYNC_INSTRUCTION_NONE &&
!_discoveryData->_syncOptions._vfs->isPlaceHolderInSync(_discoveryData->_localDir + path._local)) {
item->_instruction = CSyncEnums::CSYNC_INSTRUCTION_UPDATE_VFS_METADATA;
}
Expand Down
1 change: 0 additions & 1 deletion test/testsynccfapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@ private slots:
fakeFolder.localModifier().insert("A/a3");
fakeFolder.remoteModifier().appendByte("A/a2");
QVERIFY(fakeFolder.syncOnce());
QEXPECT_FAIL("", "", Abort);
QCOMPARE(fakeFolder.currentLocalState(), fakeFolder.currentRemoteState());
cleanup();

Expand Down

0 comments on commit ee28255

Please sign in to comment.