refactor error code

This commit is contained in:
Yihao Deng 2024-07-20 07:43:22 +00:00
parent 5172d3cd8a
commit 9d506d20f1
1 changed files with 7 additions and 6 deletions

View File

@ -218,9 +218,10 @@ 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);
if (code != 0) { // not care succ or not
return code; // if (code != 0) {
} // return code;
// }
return taosCfgDynamicOptions(pCfg, cfgReq.config, true); return taosCfgDynamicOptions(pCfg, cfgReq.config, true);
} }