提交 58661880 编写于 作者: K kailixu

chore: code optimization

上级 ca59f0d4
...@@ -711,11 +711,7 @@ _OVER: ...@@ -711,11 +711,7 @@ _OVER:
mndReleaseDnode(pMnode, pDnode); mndReleaseDnode(pMnode, pDnode);
} }
if (iter > 15) { tsGrantHBInterval = MIN(MAX(3, iter / 2), 15);
tsGrantHBInterval = 10;
} else {
tsGrantHBInterval = 5;
}
mndTransDrop(pTrans); mndTransDrop(pTrans);
sdbFreeRaw(pRaw); sdbFreeRaw(pRaw);
...@@ -1048,11 +1044,8 @@ static int32_t mndProcessConfigDnodeReq(SRpcMsg *pReq) { ...@@ -1048,11 +1044,8 @@ static int32_t mndProcessConfigDnodeReq(SRpcMsg *pReq) {
} }
mInfo("dnode:%d, start to config, option:%s, value:%s", cfgReq.dnodeId, cfgReq.config, cfgReq.value); mInfo("dnode:%d, start to config, option:%s, value:%s", cfgReq.dnodeId, cfgReq.config, cfgReq.value);
if (strncmp(cfgReq.config, "activeCode_m", 12) == 0) { if ((pReq->info.ahandle != (void *)0x818611) &&
cfgReq.config[10] = 0; (mndCheckOperPrivilege(pMnode, pReq->info.conn.user, MND_OPER_CONFIG_DNODE) != 0)) {
} else if (strncmp(cfgReq.config, "cActiveCode_m", 13) == 0) {
cfgReq.config[11] = 0;
} else if (mndCheckOperPrivilege(pMnode, pReq->info.conn.user, MND_OPER_CONFIG_DNODE) != 0) {
return -1; return -1;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册