提交 6e6100f2 编写于 作者: H Hongze Cheng

more code

上级 2bab3850
...@@ -327,7 +327,6 @@ _exit: ...@@ -327,7 +327,6 @@ _exit:
return code; return code;
} }
#if 0
int32_t tsdbCommitCommit(STsdb *pTsdb) { int32_t tsdbCommitCommit(STsdb *pTsdb) {
int32_t code = 0; int32_t code = 0;
int32_t lino = 0; int32_t lino = 0;
...@@ -374,4 +373,3 @@ _exit: ...@@ -374,4 +373,3 @@ _exit:
} }
return code; return code;
} }
\ No newline at end of file
#endif
\ No newline at end of file
...@@ -24,6 +24,13 @@ extern "C" { ...@@ -24,6 +24,13 @@ extern "C" {
/* Exposed Handle */ /* Exposed Handle */
struct SFileSet; struct SFileSet;
struct SSttFileLayer {
int32_t level;
int32_t nFile;
struct STFile *fileList;
};
#define TSDB_STT_FILE_LEVEL_MAX 3
/* Exposed APIs */ /* Exposed APIs */
...@@ -32,7 +39,7 @@ struct SFileSet { ...@@ -32,7 +39,7 @@ struct SFileSet {
int32_t fid; int32_t fid;
int64_t nextid; int64_t nextid;
struct STFile *files[TSDB_FTYPE_MAX]; struct STFile *files[TSDB_FTYPE_MAX];
SRBTree fsttTree; struct SSttFileLayer sttLayers[TSDB_STT_FILE_LEVEL_MAX];
}; };
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -31,7 +31,8 @@ typedef enum { ...@@ -31,7 +31,8 @@ typedef enum {
struct SFileOp { struct SFileOp {
EFileOpType op; EFileOpType op;
// TODO struct STFile oFile; // old file state
struct STFile nFile; // new file state
}; };
/* Exposed APIs */ /* Exposed APIs */
......
...@@ -22,8 +22,9 @@ extern int32_t tsdbReadFile(STsdbFD *pFD, int64_t offset, uint8_t *pBuf, int64_t ...@@ -22,8 +22,9 @@ extern int32_t tsdbReadFile(STsdbFD *pFD, int64_t offset, uint8_t *pBuf, int64_t
extern int32_t tsdbFsyncFile(STsdbFD *pFD); extern int32_t tsdbFsyncFile(STsdbFD *pFD);
typedef struct { typedef struct {
int64_t prevFooter;
SFDataPtr dict[4]; // 0:bloom filter, 1:SSttBlk, 2:STbStatisBlk, 3:SDelBlk SFDataPtr dict[4]; // 0:bloom filter, 1:SSttBlk, 2:STbStatisBlk, 3:SDelBlk
uint8_t reserved[32]; uint8_t reserved[24];
} SFSttFooter; } SFSttFooter;
struct SSttFWriter { struct SSttFWriter {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册