提交 592c4393 编写于 作者: H Hongze Cheng

more code

上级 c9dc9b31
...@@ -25,14 +25,15 @@ extern "C" { ...@@ -25,14 +25,15 @@ extern "C" {
typedef struct STFile STFile; typedef struct STFile STFile;
typedef enum { typedef enum {
TSDB_FTYPE_HEAD = 0, // .head TSDB_FTYPE_HEAD = 0, // .head
TSDB_FTYPE_DATA, // .data TSDB_FTYPE_DATA, // .data
TSDB_FTYPE_SMA, // .sma TSDB_FTYPE_SMA, // .sma
TSDB_FTYPE_TOMB, // .tomb TSDB_FTYPE_TOMB, // .tomb
TSDB_FTYPE_MAX, // max TSDB_FTYPE_STT = TSDB_FTYPE_TOMB + 2, // .stt
TSDB_FTYPE_STT, // .stt
} tsdb_ftype_t; } tsdb_ftype_t;
#define TSDB_FTYPE_MAX (TSDB_FTYPE_TOMB + 1)
int32_t tsdbTFileInit(STsdb *pTsdb, STFile *pFile); int32_t tsdbTFileInit(STsdb *pTsdb, STFile *pFile);
int32_t tsdbTFileClear(STFile *pFile); int32_t tsdbTFileClear(STFile *pFile);
...@@ -49,8 +50,8 @@ struct STFile { ...@@ -49,8 +50,8 @@ struct STFile {
int32_t fid; int32_t fid;
union { union {
struct { struct {
int32_t level; int32_t lvl;
int32_t nSeg; int32_t nseg;
} stt; } stt;
}; };
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册