From 6b95013ba01a17d4146b6a53a56c022db4d35726 Mon Sep 17 00:00:00 2001 From: kailixu Date: Fri, 15 Sep 2023 10:28:07 +0800 Subject: [PATCH] chore: code refactor for mndDnode --- source/dnode/mnode/impl/src/mndDnode.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/dnode/mnode/impl/src/mndDnode.c b/source/dnode/mnode/impl/src/mndDnode.c index cfa851d35d..c27778a413 100644 --- a/source/dnode/mnode/impl/src/mndDnode.c +++ b/source/dnode/mnode/impl/src/mndDnode.c @@ -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) {