fix(query)[TD-33181]. reset error code when retry in vnodeGetBufPoolToUse
This commit is contained in:
parent
a1d196688e
commit
8605f1c32a
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue