1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-12 11:01:17 +03:00

Got a basic unit test to work for IOC::read()

This commit is contained in:
Patrick LeBlanc
2019-03-28 14:13:21 -05:00
parent 28ccac81c4
commit e164cbc364
7 changed files with 180 additions and 14 deletions

View File

@@ -85,7 +85,7 @@ Cache::Cache() : currentCacheSize(0)
}
catch (exception &e)
{
syslog(LOG_CRIT, "Failed to create %s, got: %s", prefix.string().c_str(), e.what());
logger->log(LOG_CRIT, "Failed to create %s, got: %s", prefix.string().c_str(), e.what());
throw e;
}
//cout << "Cache got prefix " << prefix << endl;
@@ -209,7 +209,8 @@ void Cache::read(const vector<string> &keys)
if (mit != m_lru.end())
{
lru.splice(lru.end(), lru, mit->lit);
removeFromDNE(lru.end());
LRU_t::iterator lit = lru.end();
removeFromDNE(--lit);
}
else if (dl_errnos[i] == 0) // successful download
{