Merge pull request #26943 from taosdata/fix/3.0/TD-31155

fix queryQworkerPool only allowed one extra thread to handle nonblock…
This commit is contained in:
dapan1121 2024-08-05 16:59:57 +08:00 committed by GitHub
commit 690d5b9a6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -995,7 +995,7 @@ static int32_t tQueryAutoQWorkerAddWorker(SQueryAutoQWorkerPool *pool) {
static int32_t tQueryAutoQWorkerBeforeBlocking(void *p) {
SQueryAutoQWorkerPool *pPool = p;
if (tQueryAutoQWorkerTrySignalWaitingAfterBlock(p) || tQueryAutoQWorkerTrySignalWaitingBeforeProcess(p) ||
tQueryAutoQWorkerTryDecActive(p, 1)) {
tQueryAutoQWorkerTryDecActive(p, pPool->num)) {
} else {
int32_t code = tQueryAutoQWorkerAddWorker(pPool);
if (code != TSDB_CODE_SUCCESS) {