fix another bug
This commit is contained in:
parent
48306365ae
commit
27bcf222ce
|
@ -288,8 +288,6 @@ static int tdbPageAllocate(SPage *pPage, int szCell, SCell **ppCell) {
|
||||||
} else {
|
} else {
|
||||||
TDB_PAGE_FCELL_SET(pPage, pFreeCell - pPage->pData);
|
TDB_PAGE_FCELL_SET(pPage, pFreeCell - pPage->pData);
|
||||||
}
|
}
|
||||||
|
|
||||||
goto _alloc_finish;
|
|
||||||
} else {
|
} else {
|
||||||
if (pPrevFreeCell) {
|
if (pPrevFreeCell) {
|
||||||
pPage->pPageMethods->setFreeCellInfo(pPrevFreeCell, szPrevFreeCell, nxFreeCell);
|
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);
|
TDB_PAGE_FCELL_SET(pPage, nxFreeCell);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
goto _alloc_finish;
|
||||||
} else {
|
} else {
|
||||||
pPrevFreeCell = pFreeCell;
|
pPrevFreeCell = pFreeCell;
|
||||||
szPrevFreeCell = szFreeCell;
|
szPrevFreeCell = szFreeCell;
|
||||||
|
|
Loading…
Reference in New Issue