fix regression with VFS update metadata instruction

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2024-05-07 19:07:49 +02:00
parent 91bea6f305
commit 7c9f652c3e
2 changed files with 1 additions and 1 deletions

View file

@ -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;
}

View file

@ -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();