提交 6126fad6 编写于 作者: H Hongze Cheng

more TDB

上级 19b863ed
......@@ -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
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册