refactor error code
This commit is contained in:
parent
9d506d20f1
commit
f80d67acbb
|
@ -218,10 +218,13 @@ int32_t dmProcessConfigReq(SDnodeMgmt *pMgmt, SRpcMsg *pMsg) {
|
||||||
SConfig *pCfg = taosGetCfg();
|
SConfig *pCfg = taosGetCfg();
|
||||||
|
|
||||||
code = cfgSetItem(pCfg, cfgReq.config, cfgReq.value, CFG_STYPE_ALTER_CMD, true);
|
code = cfgSetItem(pCfg, cfgReq.config, cfgReq.value, CFG_STYPE_ALTER_CMD, true);
|
||||||
// not care succ or not
|
if (code != 0) {
|
||||||
// if (code != 0) {
|
if (strncasecmp(cfgReq.config, "resetlog", strlen("resetlog")) == 0) {
|
||||||
// return code;
|
code = 0;
|
||||||
// }
|
} else {
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return taosCfgDynamicOptions(pCfg, cfgReq.config, true);
|
return taosCfgDynamicOptions(pCfg, cfgReq.config, true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue