more
This commit is contained in:
parent
51d8cf6e68
commit
dcb065645b
|
@ -1012,7 +1012,7 @@ int tdbBtcMoveToFirst(SBTC *pBtc) {
|
||||||
if (TDB_PAGE_TOTAL_CELLS(pBtc->pPage) > 0) {
|
if (TDB_PAGE_TOTAL_CELLS(pBtc->pPage) > 0) {
|
||||||
pBtc->idx = 0;
|
pBtc->idx = 0;
|
||||||
} else {
|
} else {
|
||||||
// no any data, point is invalid
|
// no any data, point to an invalid position
|
||||||
ASSERT(TDB_BTREE_PAGE_IS_LEAF(pBtc->pPage));
|
ASSERT(TDB_BTREE_PAGE_IS_LEAF(pBtc->pPage));
|
||||||
pBtc->idx = -1;
|
pBtc->idx = -1;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue