chore: code refactor for mndDnode

This commit is contained in:
kailixu 2023-09-15 10:28:07 +08:00
parent 8505fb2aea
commit 6b95013ba0
1 changed files with 3 additions and 2 deletions

View File

@ -51,7 +51,6 @@ enum {
DND_CONN_ACTIVE_CODE, DND_CONN_ACTIVE_CODE,
}; };
extern int32_t mndUpdateClusterInfo(SRpcMsg *pReq);
static int32_t mndCreateDefaultDnode(SMnode *pMnode); static int32_t mndCreateDefaultDnode(SMnode *pMnode);
static SSdbRaw *mndDnodeActionEncode(SDnodeObj *pDnode); static SSdbRaw *mndDnodeActionEncode(SDnodeObj *pDnode);
static SSdbRow *mndDnodeActionDecode(SSdbRaw *pRaw); static SSdbRow *mndDnodeActionDecode(SSdbRaw *pRaw);
@ -473,7 +472,9 @@ static bool mndUpdateMnodeState(SMnodeObj *pObj, SMnodeLoad *pMload) {
} }
#ifndef TD_ENTERPRISE #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 #endif
static int32_t mndProcessStatusReq(SRpcMsg *pReq) { static int32_t mndProcessStatusReq(SRpcMsg *pReq) {