1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

Noticed a potential deadlock problem in poolallocator.

This commit is contained in:
Patrick LeBlanc
2020-01-02 12:16:05 -05:00
parent bd592aa714
commit 8b6d004523

View File

@ -93,7 +93,11 @@ void PoolAllocator::deallocate(void* p)
OutOfBandMap::iterator it = oob.find(p);
if (it == oob.end())
{
if (useLock)
lock.store(false, std::memory_order_release);
return;
}
memUsage -= it->second.size;
oob.erase(it);