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

Fixed a few random things.

This commit is contained in:
Patrick LeBlanc
2019-04-05 14:10:59 -05:00
parent 0d7556811a
commit 1879499ad3
5 changed files with 60 additions and 43 deletions

View File

@@ -384,7 +384,12 @@ void Cache::rename(const string &oldKey, const string &newKey, ssize_t sizediff)
{
boost::unique_lock<boost::mutex> s(lru_mutex);
auto it = m_lru.find(oldKey);
assert(it != m_lru.end());
//assert(it != m_lru.end());
if (it == m_lru.end())
{
logger->log(LOG_ERR, "Cache: was told to rename %s, but it does not exist", oldKey.string().c_str());
assert(0);
}
auto lit = it->lit;
m_lru.erase(it);