提交 7e586f4d 编写于 作者: H Hongze Cheng

more TDB

上级 8d23a257
...@@ -15,6 +15,16 @@ ...@@ -15,6 +15,16 @@
#include "tdbInt.h" #include "tdbInt.h"
int tdbPageCreate(int pageSize, SPage **ppPage, void *(*xMalloc)(void *, size_t), void *arg) {
// TODO
return 0;
}
int tdbPageDestroy(SPage *pPage, void (*xFree)(void *)) {
// TODO
return 0;
}
int tdbPageInsertCell(SPage *pPage, int idx, SCell *pCell, int szCell) { int tdbPageInsertCell(SPage *pPage, int idx, SCell *pCell, int szCell) {
// TODO // TODO
return 0; return 0;
......
...@@ -39,6 +39,7 @@ struct SPage { ...@@ -39,6 +39,7 @@ struct SPage {
pthread_spinlock_t lock; pthread_spinlock_t lock;
u8 *pData; u8 *pData;
SPgid pgid; SPgid pgid;
int pageSize;
// Fields used by SPCache // Fields used by SPCache
TDB_PCACHE_PAGE TDB_PCACHE_PAGE
...@@ -95,6 +96,8 @@ struct SPage { ...@@ -95,6 +96,8 @@ struct SPage {
#endif #endif
// APIs // APIs
int tdbPageCreate(int pageSize, SPage **ppPage, void *(*xMalloc)(void *, size_t), void *arg);
int tdbPageDestroy(SPage *pPage, void (*xFree)(void *));
int tdbPageInsertCell(SPage *pPage, int idx, SCell *pCell, int szCell); int tdbPageInsertCell(SPage *pPage, int idx, SCell *pCell, int szCell);
int tdbPageDropCell(SPage *pPage, int idx); int tdbPageDropCell(SPage *pPage, int idx);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册