From 64be05208e4c641897611630f16b9ae0738f0261 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Mon, 7 Feb 2022 03:02:34 +0000 Subject: [PATCH] refact --- source/libs/tdb/src/inc/btree.h | 2 -- source/libs/tdb/src/inc/pgfile.h | 4 ---- source/libs/tdb/src/inc/tdbInt.h | 2 ++ 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/source/libs/tdb/src/inc/btree.h b/source/libs/tdb/src/inc/btree.h index 01658d5e00..7b1b6cd2ef 100644 --- a/source/libs/tdb/src/inc/btree.h +++ b/source/libs/tdb/src/inc/btree.h @@ -16,8 +16,6 @@ #ifndef _TD_BTREE_H_ #define _TD_BTREE_H_ -#include "tdbInt.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/source/libs/tdb/src/inc/pgfile.h b/source/libs/tdb/src/inc/pgfile.h index 9c502fed9e..15196ef619 100644 --- a/source/libs/tdb/src/inc/pgfile.h +++ b/source/libs/tdb/src/inc/pgfile.h @@ -16,10 +16,6 @@ #ifndef _TD_PAGE_FILE_H_ #define _TD_PAGE_FILE_H_ -#include "tdbInt.h" - -#include "pgcache.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/source/libs/tdb/src/inc/tdbInt.h b/source/libs/tdb/src/inc/tdbInt.h index 3746c5f077..41672538f8 100644 --- a/source/libs/tdb/src/inc/tdbInt.h +++ b/source/libs/tdb/src/inc/tdbInt.h @@ -54,6 +54,8 @@ typedef int32_t pgsize_t; #define tdbError(var) #include "pgcache.h" +#include "pgfile.h" +#include "btree.h" // tdb util int tdbGnrtFileID(const char *fname, uint8_t *fileid);