refactor
This commit is contained in:
parent
c510e513d9
commit
aaa1c1ccbb
|
@ -22,6 +22,16 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
int level;
|
||||
int id;
|
||||
} SDiskID;
|
||||
|
||||
typedef struct {
|
||||
SDiskID did;
|
||||
char fname[TSDB_FILENAME_LEN];
|
||||
} STfsFile;
|
||||
|
||||
int tfsInit(SDiskCfg *pDiskCfg, int ndisk);
|
||||
void tfsDestroy();
|
||||
int tfsUpdateInfo();
|
||||
|
|
|
@ -20,11 +20,6 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
int level;
|
||||
int id;
|
||||
} SDiskID;
|
||||
|
||||
typedef struct {
|
||||
uint64_t size;
|
||||
uint64_t free;
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#include "tsdb.h"
|
||||
#include "tskiplist.h"
|
||||
#include "tutil.h"
|
||||
#include "tmount.h"
|
||||
#include "tfs.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -189,9 +189,10 @@ typedef struct {
|
|||
} STsdbFileInfo;
|
||||
|
||||
typedef struct {
|
||||
char fname[TSDB_FILENAME_LEN];
|
||||
int fd;
|
||||
// char fname[TSDB_FILENAME_LEN];
|
||||
// int fd;
|
||||
|
||||
STfsFile tfile;
|
||||
STsdbFileInfo info;
|
||||
} SFile;
|
||||
|
||||
|
|
Loading…
Reference in New Issue