This commit is contained in:
Hongze Cheng 2022-03-30 08:25:01 +00:00
parent 51d8cf6e68
commit dcb065645b
1 changed files with 1 additions and 1 deletions

View File

@ -1012,7 +1012,7 @@ int tdbBtcMoveToFirst(SBTC *pBtc) {
if (TDB_PAGE_TOTAL_CELLS(pBtc->pPage) > 0) {
pBtc->idx = 0;
} else {
// no any data, point is invalid
// no any data, point to an invalid position
ASSERT(TDB_BTREE_PAGE_IS_LEAF(pBtc->pPage));
pBtc->idx = -1;
return 0;