1
0
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:
Patrick LeBlanc
2019-03-26 14:04:28 -05:00
parent a912862651
commit de1d849d14

View File

@@ -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 */