fix(query)[TD-33181]. reset error code when retry in vnodeGetBufPoolToUse

This commit is contained in:
Jinqing Kuang 2024-12-11 19:59:12 +08:00
parent a1d196688e
commit 8605f1c32a
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);
if (code && code != TSDB_CODE_TIMEOUT_ERROR) {
TSDB_CHECK_CODE(code, lino, _exit);
// ignore timeout error and retry
if (code == TSDB_CODE_TIMEOUT_ERROR) {
code = TSDB_CODE_SUCCESS;
}
TSDB_CHECK_CODE(code, lino, _exit);
}
}
}