You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-12-18 13:54:11 +03:00
Removed some redundant assertions around deleting files,
commented the one in replicator::remove() to get ready for milestone-2, and to make the unit test work.
This commit is contained in:
@@ -495,11 +495,7 @@ void Synchronizer::synchronizeWithJournal(const string &sourceFile, list<string>
|
||||
count += err;
|
||||
}
|
||||
cache->rename(key, newKey, size - bf::file_size(oldCachePath));
|
||||
#ifndef NDEBUG
|
||||
assert(replicator->remove(oldCachePath) == 0);
|
||||
#else
|
||||
replicator->remove(oldCachePath);
|
||||
#endif
|
||||
replicator->remove(oldCachePath);
|
||||
}
|
||||
|
||||
// update the metadata for the source file
|
||||
@@ -512,11 +508,7 @@ void Synchronizer::synchronizeWithJournal(const string &sourceFile, list<string>
|
||||
|
||||
// delete the old object & journal file
|
||||
cache->deletedJournal(bf::file_size(journalName));
|
||||
#ifndef NDEBUG
|
||||
assert(replicator->remove(journalName) == 0);
|
||||
#else
|
||||
replicator->remove(journalName);
|
||||
#endif
|
||||
replicator->remove(journalName);
|
||||
cs->deleteObject(key);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user