1
0
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:
David Hall
2022-03-07 14:24:54 -06:00
parent b1d5a46f3f
commit 7ebd0d3b3c
3 changed files with 5 additions and 6 deletions

View File

@ -113,6 +113,10 @@ class PriorityThreadPool
{
blockedThreads--;
}
uint32_t blockedThreadCount()
{
return blockedThreads;
}
protected:
private: