[TD-10430] minor changes
This commit is contained in:
parent
d6976c0f38
commit
6bf279b60a
|
@ -86,14 +86,6 @@ typedef struct {
|
||||||
*/
|
*/
|
||||||
int32_t vnodeGetStatistics(struct Vnode *vnode, SVnodeStat *stat);
|
int32_t vnodeGetStatistics(struct Vnode *vnode, SVnodeStat *stat);
|
||||||
|
|
||||||
/**
|
|
||||||
* Interface for processing messages.
|
|
||||||
*
|
|
||||||
* @param vnode, instance of vnode module.
|
|
||||||
* @param msg, message to be processed.
|
|
||||||
*/
|
|
||||||
void vnodeProcessMsg(struct Vnode *vnode, SRpcMsg *msg);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the status of all vnodes.
|
* Get the status of all vnodes.
|
||||||
*
|
*
|
||||||
|
@ -111,6 +103,14 @@ void vnodeGetStatus(struct Vnode *vnode, struct SStatusMsg *status);
|
||||||
*/
|
*/
|
||||||
void vnodeSetAccess(struct Vnode *vnode, struct SVgroupAccess *access, int32_t numOfVnodes);
|
void vnodeSetAccess(struct Vnode *vnode, struct SVgroupAccess *access, int32_t numOfVnodes);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Interface for processing messages.
|
||||||
|
*
|
||||||
|
* @param vnode, instance of vnode module.
|
||||||
|
* @param msg, message to be processed.
|
||||||
|
*/
|
||||||
|
void vnodeProcessMsg(struct Vnode *vnode, SRpcMsg *msg);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
aux_source_directory(src DNODE_SRC)
|
aux_source_directory(src DNODE_SRC)
|
||||||
add_library(dnode ${DNODE_SRC})
|
add_library(dnode ${DNODE_SRC})
|
||||||
|
target_link_libraries(
|
||||||
|
dnode
|
||||||
|
PUBLIC os
|
||||||
|
PUBLIC cJson
|
||||||
|
)
|
||||||
target_include_directories(
|
target_include_directories(
|
||||||
dnode
|
dnode
|
||||||
PUBLIC "${CMAKE_SOURCE_DIR}/include/server/dnode"
|
PUBLIC "${CMAKE_SOURCE_DIR}/include/server/dnode"
|
||||||
|
|
|
@ -31,7 +31,7 @@ typedef struct DnCfg {
|
||||||
} DnCfg;
|
} DnCfg;
|
||||||
|
|
||||||
int32_t dnodeInitCfg(Dnode *dnode, DnCfg **cfg);
|
int32_t dnodeInitCfg(Dnode *dnode, DnCfg **cfg);
|
||||||
void dnodeCleanupCfg(Dnode *dnode, DnCfg **cfg);
|
void dnodeCleanupCfg(DnCfg **cfg);
|
||||||
void dnodeUpdateCfg(DnCfg *cfg, SDnodeCfg *data);
|
void dnodeUpdateCfg(DnCfg *cfg, SDnodeCfg *data);
|
||||||
int32_t dnodeGetDnodeId(DnCfg *cfg);
|
int32_t dnodeGetDnodeId(DnCfg *cfg);
|
||||||
void dnodeGetClusterId(DnCfg *cfg, char *clusterId);
|
void dnodeGetClusterId(DnCfg *cfg, char *clusterId);
|
||||||
|
|
|
@ -26,7 +26,7 @@ typedef struct DnCheck {
|
||||||
} DnCheck;
|
} DnCheck;
|
||||||
|
|
||||||
int32_t dnodeInitCheck(Dnode *dnode, DnCheck **check);
|
int32_t dnodeInitCheck(Dnode *dnode, DnCheck **check);
|
||||||
void dnodeCleanupCheck(Dnode *dnode, DnCheck **check);
|
void dnodeCleanupCheck(DnCheck **check);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,7 @@ typedef struct DnEps {
|
||||||
} DnEps;
|
} DnEps;
|
||||||
|
|
||||||
int32_t dnodeInitEps(Dnode *dnode, DnEps **eps);
|
int32_t dnodeInitEps(Dnode *dnode, DnEps **eps);
|
||||||
void dnodeCleanupEps(Dnode *dnode, DnEps **eps);
|
void dnodeCleanupEps(DnEps **eps);
|
||||||
void dnodeUpdateEps(DnEps *eps, SDnodeEps *data);
|
void dnodeUpdateEps(DnEps *eps, SDnodeEps *data);
|
||||||
bool dnodeIsDnodeEpChanged(DnEps *eps, int32_t dnodeId, char *epstr);
|
bool dnodeIsDnodeEpChanged(DnEps *eps, int32_t dnodeId, char *epstr);
|
||||||
void dnodeGetDnodeEp(Dnode *dnode, int32_t dnodeId, char *epstr, char *fqdn, uint16_t *port);
|
void dnodeGetDnodeEp(Dnode *dnode, int32_t dnodeId, char *epstr, char *fqdn, uint16_t *port);
|
||||||
|
|
|
@ -128,7 +128,7 @@ int32_t dnodeInitCfg(Dnode *dnode, DnCfg **out) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void dnodeCleanupCfg(Dnode *dnode, DnCfg **out) {
|
void dnodeCleanupCfg(DnCfg **out) {
|
||||||
DnCfg* cfg = *out;
|
DnCfg* cfg = *out;
|
||||||
*out = NULL;
|
*out = NULL;
|
||||||
|
|
||||||
|
|
|
@ -194,7 +194,7 @@ int32_t dnodeInitCheck(Dnode *dnode, DnCheck **out) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void dnodeCleanupCheck(Dnode *dnode, DnCheck **out) {
|
void dnodeCleanupCheck(DnCheck **out) {
|
||||||
DnCheck *check = *out;
|
DnCheck *check = *out;
|
||||||
*out = NULL;
|
*out = NULL;
|
||||||
|
|
||||||
|
|
|
@ -204,7 +204,7 @@ int32_t dnodeInitEps(Dnode *dnode, DnEps **out) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void dnodeCleanupEps(Dnode *dnode, DnEps **out) {
|
void dnodeCleanupEps(DnEps **out) {
|
||||||
DnEps *eps = *out;
|
DnEps *eps = *out;
|
||||||
*out = NULL;
|
*out = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue