提交 6bf279b6 编写于 作者: S Shengliang Guan

[TD-10430] minor changes

上级 d6976c0f
......@@ -86,14 +86,6 @@ typedef struct {
*/
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.
*
......@@ -111,6 +103,14 @@ void vnodeGetStatus(struct Vnode *vnode, struct SStatusMsg *status);
*/
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
}
#endif
......
aux_source_directory(src DNODE_SRC)
add_library(dnode ${DNODE_SRC})
target_link_libraries(
dnode
PUBLIC os
PUBLIC cJson
)
target_include_directories(
dnode
PUBLIC "${CMAKE_SOURCE_DIR}/include/server/dnode"
......
......@@ -31,7 +31,7 @@ typedef struct DnCfg {
} DnCfg;
int32_t dnodeInitCfg(Dnode *dnode, DnCfg **cfg);
void dnodeCleanupCfg(Dnode *dnode, DnCfg **cfg);
void dnodeCleanupCfg(DnCfg **cfg);
void dnodeUpdateCfg(DnCfg *cfg, SDnodeCfg *data);
int32_t dnodeGetDnodeId(DnCfg *cfg);
void dnodeGetClusterId(DnCfg *cfg, char *clusterId);
......
......@@ -26,7 +26,7 @@ typedef struct DnCheck {
} DnCheck;
int32_t dnodeInitCheck(Dnode *dnode, DnCheck **check);
void dnodeCleanupCheck(Dnode *dnode, DnCheck **check);
void dnodeCleanupCheck(DnCheck **check);
#ifdef __cplusplus
}
......
......@@ -33,7 +33,7 @@ typedef struct DnEps {
} DnEps;
int32_t dnodeInitEps(Dnode *dnode, DnEps **eps);
void dnodeCleanupEps(Dnode *dnode, DnEps **eps);
void dnodeCleanupEps(DnEps **eps);
void dnodeUpdateEps(DnEps *eps, SDnodeEps *data);
bool dnodeIsDnodeEpChanged(DnEps *eps, int32_t dnodeId, char *epstr);
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;
}
void dnodeCleanupCfg(Dnode *dnode, DnCfg **out) {
void dnodeCleanupCfg(DnCfg **out) {
DnCfg* cfg = *out;
*out = NULL;
......
......@@ -194,7 +194,7 @@ int32_t dnodeInitCheck(Dnode *dnode, DnCheck **out) {
return 0;
}
void dnodeCleanupCheck(Dnode *dnode, DnCheck **out) {
void dnodeCleanupCheck(DnCheck **out) {
DnCheck *check = *out;
*out = NULL;
......
......@@ -204,7 +204,7 @@ int32_t dnodeInitEps(Dnode *dnode, DnEps **out) {
return ret;
}
void dnodeCleanupEps(Dnode *dnode, DnEps **out) {
void dnodeCleanupEps(DnEps **out) {
DnEps *eps = *out;
*out = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册