未验证 提交 e821c54a 编写于 作者: W wade zhang 提交者: GitHub

Merge pull request #22447 from taosdata/fix/TD-25723

fix/TD-25723: tdb btree balance after update cell
......@@ -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.
先完成此消息的编辑!
想要评论请 注册