提交 d89f4da5 编写于 作者: K kailixu

chore: more code

上级 ef2b66b2
...@@ -1044,7 +1044,11 @@ static int32_t mndProcessConfigDnodeReq(SRpcMsg *pReq) { ...@@ -1044,7 +1044,11 @@ 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 (mndCheckOperPrivilege(pMnode, pReq->info.conn.user, MND_OPER_CONFIG_DNODE) != 0) { if (strncmp(cfgReq.config, "activeCode_m", 12) == 0) {
cfgReq.config[10] = 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.
先完成此消息的编辑!
想要评论请 注册