You've already forked mariadb-columnstore-engine
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:
@@ -428,6 +428,7 @@ void Cache::_makeSpace(size_t size)
|
|||||||
thisMuch -= statbuf.st_size;
|
thisMuch -= statbuf.st_size;
|
||||||
//logger->log(LOG_WARNING, "Cache: flushing!");
|
//logger->log(LOG_WARNING, "Cache: flushing!");
|
||||||
Synchronizer::get()->flushObject(*it);
|
Synchronizer::get()->flushObject(*it);
|
||||||
|
cachedFile = prefix / *it; // Sync may have renamed it
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
assert(replicator->remove(cachedFile, Replicator::LOCAL_ONLY) == 0);
|
assert(replicator->remove(cachedFile, Replicator::LOCAL_ONLY) == 0);
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user