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:
commit
05e6d7f5bb
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue