fix: error code return in TDB

This commit is contained in:
Hongze Cheng 2024-09-18 13:32:16 +08:00
parent 4c459155f1
commit 6be4e32156
1 changed files with 4 additions and 1 deletions

View File

@ -2479,7 +2479,10 @@ int tdbBtcMoveTo(SBTC *pBtc, const void *pKey, int kLen, int *pCRst) {
if (c > 0) {
pBtc->idx += 1;
}
(void)tdbBtcMoveDownward(pBtc);
if (tdbBtcMoveDownward(pBtc) < 0) {
tdbError("tdb/btc-move-to: btc move downward failed.");
return TSDB_CODE_FAILED;
}
}
}