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

refac TDB

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