From a6f2e871571b8f1935593bba5ab8462c538ec46f Mon Sep 17 00:00:00 2001 From: kailixu Date: Sat, 22 Jul 2023 22:18:50 +0800 Subject: [PATCH] chore: code optimization --- source/dnode/mnode/impl/src/mndDnode.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/dnode/mnode/impl/src/mndDnode.c b/source/dnode/mnode/impl/src/mndDnode.c index ae15d4de04..5740746162 100644 --- a/source/dnode/mnode/impl/src/mndDnode.c +++ b/source/dnode/mnode/impl/src/mndDnode.c @@ -701,7 +701,7 @@ static int32_t mndConfigDnode(SMnode *pMnode, SRpcMsg *pReq, SMCfgDnodeReq *pCfg } if (pTrans && mndTransPrepare(pMnode, pTrans) != 0) goto _OVER; - + tsGrantHBInterval = TMIN(TMAX(3, iter / 2), 30); terrno = 0; _OVER: @@ -710,9 +710,6 @@ _OVER: } else { mndReleaseDnode(pMnode, pDnode); } - - tsGrantHBInterval = MIN(MAX(3, iter / 2), 15); - mndTransDrop(pTrans); sdbFreeRaw(pRaw); return terrno; -- GitLab