1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-05 16:15:50 +03:00

Removed unnecessary debugging printouts/logging, fixed a couple add'l bugs.

This commit is contained in:
Patrick LeBlanc
2020-05-27 14:57:10 -04:00
parent 6fd24d2d06
commit cd5e872104
5 changed files with 6 additions and 78 deletions

View File

@@ -133,8 +133,6 @@ void PrefixCache::populate()
bf::directory_iterator dir(cachePrefix);
bf::directory_iterator dend;
vector<string> newObjects;
lru.clear();
m_lru.clear();
while (dir != dend)
{
// put everything in lru & m_lru
@@ -382,8 +380,7 @@ void PrefixCache::newJournalEntry(size_t size)
void PrefixCache::deletedJournal(size_t size)
{
boost::unique_lock<boost::mutex> s(lru_mutex);
//assert(currentCacheSize >= size);
if (currentCacheSize >= size)
currentCacheSize -= size;
else
@@ -398,8 +395,7 @@ void PrefixCache::deletedJournal(size_t size)
void PrefixCache::deletedObject(const string &key, size_t size)
{
boost::unique_lock<boost::mutex> s(lru_mutex);
//assert(currentCacheSize >= size);
M_LRU_t::iterator mit = m_lru.find(key);
assert(mit != m_lru.end());