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

Fixed some stuff, got a basic unit test for sync to work.

This commit is contained in:
Patrick LeBlanc
2019-03-21 15:23:23 -05:00
parent 719cf3f2fa
commit 323fd18953
9 changed files with 91 additions and 38 deletions

View File

@@ -37,7 +37,6 @@ Cache::Cache() : currentCacheSize(0)
{
Config *conf = Config::get();
logger = SMLogging::get();
sync = Synchronizer::get();
replicator = Replicator::get();
string stmp = conf->getValue("Cache", "cache_size");
@@ -329,7 +328,7 @@ void Cache::_makeSpace(size_t size)
assert(currentCacheSize >= statbuf.st_size);
currentCacheSize -= statbuf.st_size;
thisMuch -= statbuf.st_size;
sync->flushObject(*it);
Synchronizer::get()->flushObject(*it);
replicator->remove(cachedFile.string().c_str(), Replicator::LOCAL_ONLY);
LRU_t::iterator toRemove = it++;
lru.erase(toRemove);