chore: more code
This commit is contained in:
parent
ef2b66b280
commit
d89f4da561
|
@ -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);
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue