1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-12 11:01:17 +03:00

Undid the undoing of a fix that was OK to begin with. Cache is in fact

supposed to delete the new file not the old one after a flush.
This commit is contained in:
Patrick LeBlanc
2019-05-20 16:11:36 -05:00
parent 168a1dd194
commit 04aaff4c2b

View File

@@ -428,6 +428,7 @@ void Cache::_makeSpace(size_t size)
thisMuch -= statbuf.st_size;
//logger->log(LOG_WARNING, "Cache: flushing!");
Synchronizer::get()->flushObject(*it);
cachedFile = prefix / *it; // Sync may have renamed it
#ifndef NDEBUG
assert(replicator->remove(cachedFile, Replicator::LOCAL_ONLY) == 0);
#else