This commit is contained in:
Hongze Cheng 2022-03-11 05:43:26 +00:00
parent f16c1eeae1
commit fe1bd867c9
1 changed files with 3 additions and 2 deletions

View File

@ -56,8 +56,9 @@ struct SPage {
}; };
// Macros // Macros
#define TDB_PAGE_CELL_IDX_AT(pPage, idx) ((pPage)->aCellIdx[idx]) #define TDB_PAGE_CELL_OFFSET_SIZE(pPage) (((pPage)->pageSize < 65536) ? 2 : 3)
#define TDB_PAGE_CELL_AT(pPage, idx) ((pPage)->pData + TDB_PAGE_CELL_IDX_AT(pPage, idx)) #define TDB_PAGE_CELL_OFFSET_AT(pPage, idx) ((pPage)->aCellIdx[idx])
#define TDB_PAGE_CELL_AT(pPage, idx) ((pPage)->pData + TDB_PAGE_CELL_OFFSET_AT(pPage, idx))
// For page lock // For page lock
#define P_LOCK_SUCC 0 #define P_LOCK_SUCC 0