diff --git a/source/libs/tdb/src/db/tdbPage.c b/source/libs/tdb/src/db/tdbPage.c index af7d867405819c9c4c93d2fecc0a2b9bd1b8c974..4ad911966079f374e1487e35e8b9113ed3dfc023 100644 --- a/source/libs/tdb/src/db/tdbPage.c +++ b/source/libs/tdb/src/db/tdbPage.c @@ -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;