more code
This commit is contained in:
parent
b81f1c7be1
commit
bf8b9e744f
|
@ -22,7 +22,7 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define TSDB_STT_FILE_LEVEL_MAX 3
|
typedef struct SSttLevel SSttLevel;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
TSDB_FOP_EXTEND = -2,
|
TSDB_FOP_EXTEND = -2,
|
||||||
|
@ -39,6 +39,13 @@ struct SFileOp {
|
||||||
struct STFile nState; // new file state
|
struct STFile nState; // new file state
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct SSttLevel {
|
||||||
|
int32_t level;
|
||||||
|
int32_t nStt;
|
||||||
|
SSttLevel *pNext;
|
||||||
|
struct STFile *fSttList;
|
||||||
|
};
|
||||||
|
|
||||||
struct SFileSet {
|
struct SFileSet {
|
||||||
int32_t fid;
|
int32_t fid;
|
||||||
int64_t nextid;
|
int64_t nextid;
|
||||||
|
@ -46,11 +53,7 @@ struct SFileSet {
|
||||||
struct STFile *fData; // .data
|
struct STFile *fData; // .data
|
||||||
struct STFile *fSma; // .sma
|
struct STFile *fSma; // .sma
|
||||||
struct STFile *fTomb; // .tomb
|
struct STFile *fTomb; // .tomb
|
||||||
struct {
|
SSttLevel *sttLevelList;
|
||||||
int32_t level;
|
|
||||||
int32_t nFile;
|
|
||||||
struct STFile *fStt;
|
|
||||||
} lStt[TSDB_STT_FILE_LEVEL_MAX];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
int32_t tsdbFileSetCreate(int32_t fid, struct SFileSet **ppSet);
|
int32_t tsdbFileSetCreate(int32_t fid, struct SFileSet **ppSet);
|
||||||
|
|
Loading…
Reference in New Issue