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

Checkpointing some paranoid assertions & some fixes I noticed.

This commit is contained in:
Patrick LeBlanc
2019-04-12 15:08:01 -05:00
parent 308a25c22b
commit 5443f8662c
8 changed files with 84 additions and 46 deletions

View File

@@ -368,6 +368,7 @@ void Cache::_makeSpace(size_t size)
assert(currentCacheSize >= (size_t) statbuf.st_size);
currentCacheSize -= statbuf.st_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);
LRU_t::iterator toRemove = it++;