more TDB delte

This commit is contained in:
Hongze Cheng 2022-05-02 10:13:45 +00:00
parent 52d157718b
commit 9d0d5295f4
2 changed files with 4 additions and 2 deletions

View File

@ -1455,13 +1455,15 @@ int tdbBtcDelete(SBTC *pBtc) {
}
} else {
// delete the leaf page and do balance (TODO)
ASSERT(TDB_PAGE_TOTAL_CELLS(pBtc->pPage) == 0);
ASSERT(0);
}
}
return 0;
}
int tdbBtcUpsert(SBTC *pBtc) {
int tdbBtcUpsert(SBTC *pBtc, const void *pKey, int kLen, const void *pVal, int vLen) {
ASSERT(0);
// TODO
return 0;

View File

@ -143,7 +143,7 @@ int tdbBtcMoveToPrev(SBTC *pBtc);
int tdbBtreeNext(SBTC *pBtc, void **ppKey, int *kLen, void **ppVal, int *vLen);
int tdbBtcGet(SBTC *pBtc, const void **ppKey, int *kLen, const void **ppVal, int *vLen);
int tdbBtcDelete(SBTC *pBtc);
int tdbBtcUpsert(SBTC *pBtc);
int tdbBtcUpsert(SBTC *pBtc, const void *pKey, int kLen, const void *pVal, int vLen);
// tdbPager.c ====================================