chore: more code

This commit is contained in:
kailixu 2023-07-21 15:45:50 +08:00
parent ef2b66b280
commit d89f4da561
1 changed files with 5 additions and 1 deletions

View File

@ -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;
} }