提交 98bbde34 编写于 作者: S Shungang Li

fix: tdb btree balance after update cell

上级 d87a2b18
......@@ -2198,6 +2198,20 @@ int tdbBtcDelete(SBTC *pBtc) {
return -1;
}
tdbOsFree(pCell);
if (pPage->nOverflow > 0) {
tdbDebug("tdb/btc-delete: btree balance after update cell, pPage/nOverflow: %p/%d.", pPage,
pPage->nOverflow);
pBtc->iPage = iPage;
pBtc->pPage = pPage;
ret = tdbBtreeBalance(pBtc);
if (ret < 0) {
tdbError("tdb/btc-delete: btree balance failed with ret: %d.", ret);
return -1;
}
}
break;
} else {
pgno = TDB_PAGE_PGNO(pPage);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册