From 8505fb2aeabfd644ac87d4b6db3003e193668743 Mon Sep 17 00:00:00 2001 From: kailixu Date: Fri, 15 Sep 2023 08:49:45 +0800 Subject: [PATCH] chore: code refactor for mndDnode --- source/dnode/mnode/impl/src/mndDnode.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/dnode/mnode/impl/src/mndDnode.c b/source/dnode/mnode/impl/src/mndDnode.c index 7997b31e76..cfa851d35d 100644 --- a/source/dnode/mnode/impl/src/mndDnode.c +++ b/source/dnode/mnode/impl/src/mndDnode.c @@ -472,6 +472,10 @@ static bool mndUpdateMnodeState(SMnodeObj *pObj, SMnodeLoad *pMload) { return stateChanged; } +#ifndef TD_ENTERPRISE +int32_t mndUpdateClusterInfo(SRpcMsg *pReq) { return 0; } +#endif + static int32_t mndProcessStatusReq(SRpcMsg *pReq) { SMnode *pMnode = pReq->info.node; SStatusReq statusReq = {0}; @@ -671,10 +675,6 @@ _OVER: return code; } -#ifndef TD_ENTERPRISE -int32_t mndUpdateClusterInfo(SRpcMsg *pReq) { return 0; } -#endif - static int32_t mndCreateDnode(SMnode *pMnode, SRpcMsg *pReq, SCreateDnodeReq *pCreate) { int32_t code = -1; SSdbRaw *pRaw = NULL;