1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-13 23:02:14 +03:00

Revamped/simplified the Sync impl. Won't build yet.

This commit is contained in:
Patrick LeBlanc
2019-03-18 14:49:25 -05:00
parent 6f294b8c07
commit 6366a54bbc
3 changed files with 106 additions and 88 deletions

View File

@@ -303,8 +303,7 @@ void Cache::makeSpace(size_t size)
currentCacheSize -= statbuf.st_size;
thisMuch -= statbuf.st_size;
sync->flushObject(*it);
// Deleting the files will be done through Synchronizer->Replicator
//bf::remove(cachedFile);
replicator->delete(cachedFile, Replicator::LOCAL_ONLY);
LRU_t::iterator toRemove = it++;
lru.erase(toRemove);
m_lru.erase(*toRemove);