提交 6d762c97 编写于 作者: H Hongze Cheng

refac TDB

上级 94426d83
......@@ -128,6 +128,7 @@ int tdbPageInsertCell(SPage *pPage, int idx, SCell *pCell, int szCell) {
if (pPage->nOverflow || szCell + pPage->szOffset > pPage->nFree) {
// TODO: Page is full
ASSERT(0);
} else {
ret = tdbPageAllocate(pPage, szCell, &pTarget);
if (ret < 0) {
......
......@@ -54,10 +54,10 @@ struct SPage {
pthread_spinlock_t lock;
// Fields below used by pager and am
u8 *pPageHdr;
SPageFtr *pPageFtr;
u8 *aCellIdx;
u8 *pFreeStart;
u8 *pFreeEnd;
SPageFtr *pPageFtr;
int kLen;
int vLen;
int nFree;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册