You've already forked mariadb-columnstore-engine
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:
@ -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);
|
||||
|
Reference in New Issue
Block a user