chore: code optimization
This commit is contained in:
parent
586618807d
commit
a6f2e87157
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue