1
0
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:
Patrick LeBlanc
2019-05-28 09:57:26 -05:00
parent be01adb150
commit 9a1dc8a4c5
4 changed files with 9 additions and 29 deletions

View File

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