You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
MCOL-5009 fix deadlock
respondWait could be set to false while other threads were waiting. With respondWait false, okToRrespond wouldn't ever get notify_one(). Get rid of respondWait and use fProcessorPool->blockedThreadCount to determine if any threads may be waiting.
This commit is contained in:
@ -113,6 +113,10 @@ class PriorityThreadPool
|
||||
{
|
||||
blockedThreads--;
|
||||
}
|
||||
uint32_t blockedThreadCount()
|
||||
{
|
||||
return blockedThreads;
|
||||
}
|
||||
|
||||
protected:
|
||||
private:
|
||||
|
Reference in New Issue
Block a user