From bccedf76df51525c09e711064e3a120bb04a8b07 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Mon, 14 Mar 2022 07:00:20 +0000 Subject: [PATCH] more TDB --- source/libs/tdb/src/db/tdbPage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/libs/tdb/src/db/tdbPage.c b/source/libs/tdb/src/db/tdbPage.c index af7d867405..4ad9119660 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; -- GitLab