fix another bug

This commit is contained in:
Hongze Cheng 2022-03-23 10:12:43 +00:00
parent 48306365ae
commit 27bcf222ce
1 changed files with 2 additions and 2 deletions

View File

@ -288,8 +288,6 @@ static int tdbPageAllocate(SPage *pPage, int szCell, SCell **ppCell) {
} else {
TDB_PAGE_FCELL_SET(pPage, pFreeCell - pPage->pData);
}
goto _alloc_finish;
} else {
if (pPrevFreeCell) {
pPage->pPageMethods->setFreeCellInfo(pPrevFreeCell, szPrevFreeCell, nxFreeCell);
@ -297,6 +295,8 @@ static int tdbPageAllocate(SPage *pPage, int szCell, SCell **ppCell) {
TDB_PAGE_FCELL_SET(pPage, nxFreeCell);
}
}
goto _alloc_finish;
} else {
pPrevFreeCell = pFreeCell;
szPrevFreeCell = szFreeCell;