You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-12-13 23:02:14 +03:00
Fixed Cache::reset()
This commit is contained in:
@@ -398,6 +398,7 @@ size_t Cache::getCurrentCacheSize() const
|
|||||||
|
|
||||||
void Cache::reset()
|
void Cache::reset()
|
||||||
{
|
{
|
||||||
|
boost::unique_lock<boost::mutex> s(lru_mutex);
|
||||||
m_lru.clear();
|
m_lru.clear();
|
||||||
lru.clear();
|
lru.clear();
|
||||||
|
|
||||||
@@ -408,6 +409,7 @@ void Cache::reset()
|
|||||||
|
|
||||||
for (dir = bf::directory_iterator(journalPrefix); dir != dend; ++dir)
|
for (dir = bf::directory_iterator(journalPrefix); dir != dend; ++dir)
|
||||||
bf::remove_all(dir->path());
|
bf::remove_all(dir->path());
|
||||||
|
currentCacheSize = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The helper classes */
|
/* The helper classes */
|
||||||
|
|||||||
Reference in New Issue
Block a user