chore: code optimization

This commit is contained in:
kailixu 2023-07-22 22:18:50 +08:00
parent 586618807d
commit a6f2e87157
1 changed files with 1 additions and 4 deletions

View File

@ -701,7 +701,7 @@ static int32_t mndConfigDnode(SMnode *pMnode, SRpcMsg *pReq, SMCfgDnodeReq *pCfg
} }
if (pTrans && mndTransPrepare(pMnode, pTrans) != 0) goto _OVER; if (pTrans && mndTransPrepare(pMnode, pTrans) != 0) goto _OVER;
tsGrantHBInterval = TMIN(TMAX(3, iter / 2), 30);
terrno = 0; terrno = 0;
_OVER: _OVER:
@ -710,9 +710,6 @@ _OVER:
} else { } else {
mndReleaseDnode(pMnode, pDnode); mndReleaseDnode(pMnode, pDnode);
} }
tsGrantHBInterval = MIN(MAX(3, iter / 2), 15);
mndTransDrop(pTrans); mndTransDrop(pTrans);
sdbFreeRaw(pRaw); sdbFreeRaw(pRaw);
return terrno; return terrno;