This commit is contained in:
Hongze Cheng 2022-03-11 07:51:44 +00:00
parent 19b863ed62
commit 6126fad662
2 changed files with 5 additions and 6 deletions

View File

@ -486,7 +486,7 @@ static int tdbBtreeBalanceStep1(SBtreeBalanceHelper *pBlh) {
pBlh->nOldPages = i + 1;
if (i + nDiv - pParent->nOverflow == pParent->pPageHdr->nCells) {
pgno = pParent->pPageHdr->rChild;
// pgno = pParent->pPageHdr->rChild;
} else {
ASSERT(0);
// TODO

View File

@ -22,19 +22,18 @@ extern "C" {
typedef u8 SCell;
typedef struct __attribute__((__packed__)) {
u8 cksm[4];
} SPageFtr;
typedef struct __attribute__((__packed__)) {
u16 flags;
u16 nCells;
u16 cellCont;
u16 freeCell;
u16 nFree;
SPgno rChild;
} SPageHdr;
typedef struct __attribute__((__packed__)) {
u8 cksm[4];
} SPageFtr;
struct SPage {
u8 *pData;
int pageSize;