refactor error code

This commit is contained in:
Yihao Deng 2024-07-20 09:50:11 +00:00
parent 9d506d20f1
commit f80d67acbb
1 changed files with 7 additions and 4 deletions

View File

@ -218,10 +218,13 @@ int32_t dmProcessConfigReq(SDnodeMgmt *pMgmt, SRpcMsg *pMsg) {
SConfig *pCfg = taosGetCfg();
code = cfgSetItem(pCfg, cfgReq.config, cfgReq.value, CFG_STYPE_ALTER_CMD, true);
// not care succ or not
// if (code != 0) {
// return code;
// }
if (code != 0) {
if (strncasecmp(cfgReq.config, "resetlog", strlen("resetlog")) == 0) {
code = 0;
} else {
return code;
}
}
return taosCfgDynamicOptions(pCfg, cfgReq.config, true);
}