This commit is contained in:
Hongze Cheng 2022-03-14 07:00:20 +00:00
parent 6d762c978c
commit bccedf76df
1 changed files with 2 additions and 1 deletions

View File

@ -137,7 +137,8 @@ int tdbPageInsertCell(SPage *pPage, int idx, SCell *pCell, int szCell) {
memcpy(pTarget, pCell, szCell); memcpy(pTarget, pCell, szCell);
// TODO: memmove(); // 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; return 0;