fix an assert bug
This commit is contained in:
parent
33bbdb8bda
commit
69ff3cc67b
|
@ -278,7 +278,7 @@ static int tdbPageAllocate(SPage *pPage, int szCell, SCell **ppCell) {
|
||||||
|
|
||||||
// 2. Try to allocate from the page free list
|
// 2. Try to allocate from the page free list
|
||||||
cellFree = TDB_PAGE_FCELL(pPage);
|
cellFree = TDB_PAGE_FCELL(pPage);
|
||||||
ASSERT(cellFree == 0 || cellFree > pPage->pFreeEnd - pPage->pData);
|
ASSERT(cellFree == 0 || cellFree >= pPage->pFreeEnd - pPage->pData);
|
||||||
if (cellFree && pPage->pFreeEnd - pPage->pFreeStart >= TDB_PAGE_OFFSET_SIZE(pPage)) {
|
if (cellFree && pPage->pFreeEnd - pPage->pFreeStart >= TDB_PAGE_OFFSET_SIZE(pPage)) {
|
||||||
SCell *pPrevFreeCell = NULL;
|
SCell *pPrevFreeCell = NULL;
|
||||||
int szPrevFreeCell;
|
int szPrevFreeCell;
|
||||||
|
|
Loading…
Reference in New Issue