more TDB
This commit is contained in:
parent
50aa291ff6
commit
03eaa648d6
|
@ -385,6 +385,9 @@ static int tdbBtreeInitPage(SPage *pPage, void *arg) {
|
||||||
|
|
||||||
pBt = (SBTree *)arg;
|
pBt = (SBTree *)arg;
|
||||||
|
|
||||||
|
ASSERT(0);
|
||||||
|
|
||||||
|
// TODO: here has problem
|
||||||
flags = TDB_PAGE_FLAGS(pPage);
|
flags = TDB_PAGE_FLAGS(pPage);
|
||||||
isLeaf = TDB_BTREE_PAGE_IS_LEAF(flags);
|
isLeaf = TDB_BTREE_PAGE_IS_LEAF(flags);
|
||||||
if (isLeaf) {
|
if (isLeaf) {
|
||||||
|
@ -430,8 +433,8 @@ static int tdbBtreeZeroPage(SPage *pPage, void *arg) {
|
||||||
}
|
}
|
||||||
pPage->xCellSize = NULL; // TODO
|
pPage->xCellSize = NULL; // TODO
|
||||||
|
|
||||||
TDB_PAGE_FLAGS_SET(pPage, flags);
|
|
||||||
tdbPageZero(pPage, szAmHdr);
|
tdbPageZero(pPage, szAmHdr);
|
||||||
|
TDB_PAGE_FLAGS_SET(pPage, flags);
|
||||||
|
|
||||||
if (isLeaf) {
|
if (isLeaf) {
|
||||||
pPage->kLen = pBt->keyLen;
|
pPage->kLen = pBt->keyLen;
|
||||||
|
|
Loading…
Reference in New Issue