提交 adc8e4e8 编写于 作者: H Hongze Cheng

refactor

上级 9355c82c
......@@ -13,7 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "os.h"
#include "tdisk.h"
#include "tmount.h"
#include "hash.h"
#include "taosdef.h"
#include "taoserror.h"
......@@ -26,18 +26,18 @@ typedef struct {
uint64_t nfiles;
} SDiskMeta;
typedef struct {
uint64_t tsize;
uint64_t avail; // bytes
} STiersMeta;
typedef struct {
int level;
int did;
int id;
char dir[TSDB_FILENAME_LEN];
SDiskMeta dmeta;
} SDisk;
typedef struct {
uint64_t tsize;
uint64_t avail; // bytes
} STiersMeta;
typedef struct {
int level;
int nDisks;
......
......@@ -38,7 +38,7 @@
#include "dnodeShell.h"
#include "dnodeTelemetry.h"
#include "tpath.h"
#include "tdisk.h"
#include "tmount.h"
static SRunStatus tsRunStatus = TSDB_RUN_STATUS_STOPPED;
......
......@@ -16,7 +16,7 @@
#define _DEFAULT_SOURCE
#include "os.h"
#include "tconfig.h"
#include "tdisk.h"
#include "tmount.h"
#include "tglobal.h"
#include "tulog.h"
......
......@@ -20,7 +20,7 @@
#include "tlog.h"
#include "ttimer.h"
#include "tutil.h"
#include "tdisk.h"
#include "tmount.h"
#include "tscUtil.h"
#include "tsclient.h"
#include "dnode.h"
......
......@@ -26,7 +26,7 @@
#include "tsdb.h"
#include "tskiplist.h"
#include "tutil.h"
#include "tdisk.h"
#include "tmount.h"
#ifdef __cplusplus
extern "C" {
......
......@@ -22,7 +22,7 @@
#include "tsdbMain.h"
#include "tutil.h"
#include "tpath.h"
#include "tdisk.h"
#include "tmount.h"
const char * tsdbFileSuffix[] = {".head", ".data", ".last", ".stat", ".h", ".d", ".l", ".s"};
......
......@@ -30,7 +30,7 @@
#include "dnodeVRead.h"
#include "query.h"
#include "tpath.h"
#include "tdisk.h"
#include "tmount.h"
static SHashObj*tsVnodesHash;
static void vnodeCleanUp(SVnodeObj *pVnode);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册