Merge pull request #29108 from taosdata/fix/TD-33181-main

fix(query)[TD-33181]. reset error code when retry in vnodeGetBufPoolToUse
This commit is contained in:
Shengliang Guan 2024-12-13 17:45:49 +08:00 committed by GitHub
commit 05e6d7f5bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -103,9 +103,11 @@ static int32_t vnodeGetBufPoolToUse(SVnode *pVnode) {
} }
code = taosThreadCondTimedWait(&pVnode->poolNotEmpty, &pVnode->mutex, &ts); code = taosThreadCondTimedWait(&pVnode->poolNotEmpty, &pVnode->mutex, &ts);
if (code && code != TSDB_CODE_TIMEOUT_ERROR) { // ignore timeout error and retry
TSDB_CHECK_CODE(code, lino, _exit); if (code == TSDB_CODE_TIMEOUT_ERROR) {
code = TSDB_CODE_SUCCESS;
} }
TSDB_CHECK_CODE(code, lino, _exit);
} }
} }
} }