From 592c4393ddee66d82bb31f4d2d2666e53f11c60e Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Mon, 8 May 2023 10:53:39 +0800 Subject: [PATCH] more code --- source/dnode/vnode/src/tsdb/dev/inc/tsdbFile.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/source/dnode/vnode/src/tsdb/dev/inc/tsdbFile.h b/source/dnode/vnode/src/tsdb/dev/inc/tsdbFile.h index eae980befe..b16b7af7bb 100644 --- a/source/dnode/vnode/src/tsdb/dev/inc/tsdbFile.h +++ b/source/dnode/vnode/src/tsdb/dev/inc/tsdbFile.h @@ -25,14 +25,15 @@ extern "C" { typedef struct STFile STFile; typedef enum { - TSDB_FTYPE_HEAD = 0, // .head - TSDB_FTYPE_DATA, // .data - TSDB_FTYPE_SMA, // .sma - TSDB_FTYPE_TOMB, // .tomb - TSDB_FTYPE_MAX, // max - TSDB_FTYPE_STT, // .stt + TSDB_FTYPE_HEAD = 0, // .head + TSDB_FTYPE_DATA, // .data + TSDB_FTYPE_SMA, // .sma + TSDB_FTYPE_TOMB, // .tomb + TSDB_FTYPE_STT = TSDB_FTYPE_TOMB + 2, // .stt } tsdb_ftype_t; +#define TSDB_FTYPE_MAX (TSDB_FTYPE_TOMB + 1) + int32_t tsdbTFileInit(STsdb *pTsdb, STFile *pFile); int32_t tsdbTFileClear(STFile *pFile); @@ -49,8 +50,8 @@ struct STFile { int32_t fid; union { struct { - int32_t level; - int32_t nSeg; + int32_t lvl; + int32_t nseg; } stt; }; }; -- GitLab