Skip to content

Commit ba5e7a3

Browse files
committed
Fix condition to create snapshot in loadFileToMemory mode
1 parent 0d17975 commit ba5e7a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CCDB/src/CcdbApi.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,7 @@ void CcdbApi::loadFileToMemory(o2::pmr::vector<char>& dest, std::string const& p
13911391
logReading(path, headers, fmt::format("{}{}", considerSnapshot ? "load to memory" : "retrieve", fromSnapshot ? " from snapshot" : ""));
13921392

13931393
// are we asked to create a snapshot ?
1394-
if (considerSnapshot && !mSnapshotCachePath.empty() && fromSnapshot != 1) { // store in the snapshot only if the object was not read from the snapshot
1394+
if (considerSnapshot && !mSnapshotCachePath.empty() && fromSnapshot != 2) { // store in the snapshot only if the object was not read from the snapshot
13951395
if (mInSnapshotMode && mSnapshotTopPath == mSnapshotCachePath) { // do not save to itself
13961396
return;
13971397
}

0 commit comments

Comments
 (0)