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 Cache::reset()
This commit is contained in:
@@ -398,6 +398,7 @@ size_t Cache::getCurrentCacheSize() const
|
||||
|
||||
void Cache::reset()
|
||||
{
|
||||
boost::unique_lock<boost::mutex> s(lru_mutex);
|
||||
m_lru.clear();
|
||||
lru.clear();
|
||||
|
||||
@@ -408,6 +409,7 @@ void Cache::reset()
|
||||
|
||||
for (dir = bf::directory_iterator(journalPrefix); dir != dend; ++dir)
|
||||
bf::remove_all(dir->path());
|
||||
currentCacheSize = 0;
|
||||
}
|
||||
|
||||
/* The helper classes */
|
||||
|
||||
Reference in New Issue
Block a user