do not cause implicit hydration of virtual files during sync
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Wed, 3 Apr 2024 11:29:58 +0000 (13:29 +0200)
committerCamila Ayres <hello@camilasan.com>
Tue, 23 Apr 2024 16:47:42 +0000 (18:47 +0200)
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/libsync/discovery.cpp

index 86450a2a53e41fe5f02b27acac84dead5f1be5d7..ccfb0c25f982efac89feffbbaa267efe4dba3b82 100644 (file)
@@ -1036,7 +1036,7 @@ void ProcessDirectoryJob::processFileAnalyzeLocalInfo(
             item->_status = SyncFileItem::Status::NormalError;
         }
 
-        {
+        if (item->_type != CSyncEnums::ItemTypeVirtualFile) {
             const auto foundEditorsKeepingFileBusy = queryEditorsKeepingFileBusy(item, path);
             if (!foundEditorsKeepingFileBusy.isEmpty()) {
                 item->_instruction = CSYNC_INSTRUCTION_ERROR;