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
Fixed a bug where Cache could delete the wrong file after a flush.
This commit is contained in:
@@ -428,7 +428,8 @@ void Cache::_makeSpace(size_t size)
|
||||
thisMuch -= statbuf.st_size;
|
||||
//logger->log(LOG_WARNING, "Cache: flushing! Try to avoid this, it may deadlock!");
|
||||
Synchronizer::get()->flushObject(*it);
|
||||
replicator->remove(cachedFile.string().c_str(), Replicator::LOCAL_ONLY);
|
||||
cachedFile = prefix / *it; // it might have been renamed by the flush
|
||||
replicator->remove(cachedFile, Replicator::LOCAL_ONLY);
|
||||
LRU_t::iterator toRemove = it++;
|
||||
m_lru.erase(*toRemove);
|
||||
lru.erase(toRemove);
|
||||
|
||||
Reference in New Issue
Block a user