Update dmMgmt.h
This commit is contained in:
parent
27577c0d6d
commit
46f27a77f1
|
@ -70,6 +70,7 @@ typedef struct SUdfdData {
|
||||||
int32_t dnodeId;
|
int32_t dnodeId;
|
||||||
} SUdfdData;
|
} SUdfdData;
|
||||||
|
|
||||||
|
#ifndef TD_MODULE_OPTIMIZE
|
||||||
typedef struct SDnode {
|
typedef struct SDnode {
|
||||||
int8_t once;
|
int8_t once;
|
||||||
bool stop;
|
bool stop;
|
||||||
|
@ -83,6 +84,21 @@ typedef struct SDnode {
|
||||||
SMgmtWrapper wrappers[NODE_END];
|
SMgmtWrapper wrappers[NODE_END];
|
||||||
SDnodeTrans trans;
|
SDnodeTrans trans;
|
||||||
} SDnode;
|
} SDnode;
|
||||||
|
#else
|
||||||
|
typedef struct SDnode {
|
||||||
|
int8_t once;
|
||||||
|
bool stop;
|
||||||
|
EDndRunStatus status;
|
||||||
|
SStartupInfo startup;
|
||||||
|
SDnodeTrans trans;
|
||||||
|
SUdfdData udfdData;
|
||||||
|
TdThreadMutex mutex;
|
||||||
|
TdFilePtr lockfile;
|
||||||
|
SDnodeData data;
|
||||||
|
STfs *pTfs;
|
||||||
|
SMgmtWrapper wrappers[NODE_END];
|
||||||
|
} SDnode;
|
||||||
|
#endif
|
||||||
|
|
||||||
// dmEnv.c
|
// dmEnv.c
|
||||||
SDnode *dmInstance();
|
SDnode *dmInstance();
|
||||||
|
|
Loading…
Reference in New Issue