Merge pull request #27923 from taosdata/fix/TD-32133-3.0

fix: error code return in TDB
This commit is contained in:
Hongze Cheng 2024-09-18 15:29:46 +08:00 committed by GitHub
commit eaad483616
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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;
}
}
}