chore: code refactor for mndDnode
This commit is contained in:
parent
8505fb2aea
commit
6b95013ba0
|
@ -51,7 +51,6 @@ enum {
|
|||
DND_CONN_ACTIVE_CODE,
|
||||
};
|
||||
|
||||
extern int32_t mndUpdateClusterInfo(SRpcMsg *pReq);
|
||||
static int32_t mndCreateDefaultDnode(SMnode *pMnode);
|
||||
static SSdbRaw *mndDnodeActionEncode(SDnodeObj *pDnode);
|
||||
static SSdbRow *mndDnodeActionDecode(SSdbRaw *pRaw);
|
||||
|
@ -473,7 +472,9 @@ static bool mndUpdateMnodeState(SMnodeObj *pObj, SMnodeLoad *pMload) {
|
|||
}
|
||||
|
||||
#ifndef TD_ENTERPRISE
|
||||
int32_t mndUpdateClusterInfo(SRpcMsg *pReq) { return 0; }
|
||||
static int32_t mndUpdateClusterInfo(SRpcMsg *pReq) { return 0; }
|
||||
#else
|
||||
int32_t mndUpdateClusterInfo(SRpcMsg *pReq);
|
||||
#endif
|
||||
|
||||
static int32_t mndProcessStatusReq(SRpcMsg *pReq) {
|
||||
|
|
Loading…
Reference in New Issue