提交 6662067e 编写于 作者: H Hongze Cheng

more TDB

上级 9d957275
...@@ -71,8 +71,8 @@ static FORCE_INLINE int tdbCmprPgId(const void *p1, const void *p2) { ...@@ -71,8 +71,8 @@ static FORCE_INLINE int tdbCmprPgId(const void *p1, const void *p2) {
#define TDB_IS_SAME_PAGE(pPgid1, pPgid2) (tdbCmprPgId(pPgid1, pPgid2) == 0) #define TDB_IS_SAME_PAGE(pPgid1, pPgid2) (tdbCmprPgId(pPgid1, pPgid2) == 0)
// pgsz_t // pgsz_t
#define TDB_MIN_PGSIZE 512 #define TDB_MIN_PGSIZE 512 // 512B
#define TDB_MAX_PGSIZE 65536 #define TDB_MAX_PGSIZE 16777216 // 16M
#define TDB_DEFAULT_PGSIZE 4096 #define TDB_DEFAULT_PGSIZE 4096
#define TDB_IS_PGSIZE_VLD(s) (((s) >= TDB_MIN_PGSIZE) && ((s) <= TDB_MAX_PGSIZE)) #define TDB_IS_PGSIZE_VLD(s) (((s) >= TDB_MIN_PGSIZE) && ((s) <= TDB_MAX_PGSIZE))
......
...@@ -40,21 +40,21 @@ struct SPage { ...@@ -40,21 +40,21 @@ struct SPage {
u8 *pData; u8 *pData;
SPgid pgid; SPgid pgid;
int pageSize; int pageSize;
// Fields used by SPCache
TDB_PCACHE_PAGE
// Fields below used by pager and am // Fields below used by pager and am
SPageHdr *pPageHdr; SPageHdr *pPageHdr;
SPageFooter *pPageFooter; SPageFooter *pPageFooter;
u16 *aCellIdx;
int kLen; u16 *aCellIdx;
int vLen;
int maxLocal; int kLen;
int minLocal; int vLen;
int nOverflow; int maxLocal;
void *apOvfl[4]; int minLocal;
int aiOvfl[4]; int nOverflow;
void *apOvfl[4];
int aiOvfl[4];
// Fields used by SPCache
TDB_PCACHE_PAGE
}; };
// Macros // Macros
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册