Skip to content

Commit

Permalink
in debug release, wiping out a stale virtual file should not happen
Browse files Browse the repository at this point in the history
use Q_ASSERT to detect any wiping out of virtual files if that would
ever happen

Signed-off-by: Matthieu Gallien <[email protected]>
  • Loading branch information
mgallien committed Oct 17, 2024
1 parent 130431e commit 87517e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libsync/discovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1355,6 +1355,8 @@ void ProcessDirectoryJob::processFileAnalyzeLocalInfo(
<< "but looks odd, keeping";
item->_instruction = CSYNC_INSTRUCTION_IGNORE;

Q_ASSERT(false);

return;
}

Expand All @@ -1376,6 +1378,7 @@ void ProcessDirectoryJob::processFileAnalyzeLocalInfo(
item->_direction = SyncFileItem::Down;
// this flag needs to be unset, otherwise a folder would get marked as new in the processSubJobs
_childModified = false;
Q_ASSERT(false);
};

// Check if it is a move
Expand Down

0 comments on commit 87517e5

Please sign in to comment.