From 96636345550618d57adccbf1806187a2f1f5e608 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Wed, 9 Mar 2022 08:59:17 +0000 Subject: [PATCH] more TDB --- source/libs/tdb/src/db/tdbPage.c | 12 +++++++++++- source/libs/tdb/src/inc/tdbPage.h | 4 ++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/source/libs/tdb/src/db/tdbPage.c b/source/libs/tdb/src/db/tdbPage.c index 2ce1e62c16..8d283e5ed2 100644 --- a/source/libs/tdb/src/db/tdbPage.c +++ b/source/libs/tdb/src/db/tdbPage.c @@ -13,4 +13,14 @@ * along with this program. If not, see . */ -#include "tdbInt.h" \ No newline at end of file +#include "tdbInt.h" + +int tdbPageInsertCell(SPage *pPage, int idx, u8 *pCell, int szCell) { + // TODO + return 0; +} + +int tdbPageDropCell(SPage *pPage, int idx) { + // TODO + return 0; +} \ No newline at end of file diff --git a/source/libs/tdb/src/inc/tdbPage.h b/source/libs/tdb/src/inc/tdbPage.h index be412e635c..74145ba860 100644 --- a/source/libs/tdb/src/inc/tdbPage.h +++ b/source/libs/tdb/src/inc/tdbPage.h @@ -87,6 +87,10 @@ struct SPage { #define TDB_GET_PAGE_REF(pPage) atomic_load_32(&((pPage)->nRef)) #endif +// APIs +int tdbPageInsertCell(SPage *pPage, int idx, u8 *pCell, int szCell); +int tdbPageDropCell(SPage *pPage, int idx); + #ifdef __cplusplus } #endif