提交 bccedf76 编写于 作者: H Hongze Cheng

more TDB

上级 6d762c97
......@@ -137,7 +137,8 @@ int tdbPageInsertCell(SPage *pPage, int idx, SCell *pCell, int szCell) {
memcpy(pTarget, pCell, szCell);
// TODO: memmove();
// pPage->pPaggHdr->nCells++;
TDB_PAGE_CELL_OFFSET_AT_SET(pPage, idx, pCell - pPage->pData);
TDB_PAGE_NCELLS_SET(pPage, TDB_PAGE_NCELLS(pPage) + 1);
}
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册