This commit is contained in:
Hongze Cheng 2022-02-25 01:51:17 +00:00
parent a4cc355f6c
commit 2d304989aa
1 changed files with 6 additions and 2 deletions

View File

@ -15,6 +15,8 @@
#include "tdbInt.h" #include "tdbInt.h"
#define BTREE_MAX_DEPTH 20
struct SBTree { struct SBTree {
SPgno root; SPgno root;
int keyLen; int keyLen;
@ -24,8 +26,10 @@ struct SBTree {
}; };
struct SBtCursor { struct SBtCursor {
SBTree *pBt; SBTree * pBt;
int8_t iPage; i8 iPage;
SMemPage *pPage;
SMemPage *apPage[BTREE_MAX_DEPTH + 1];
}; };
typedef struct SMemPage { typedef struct SMemPage {