diff --git a/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c b/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c index 16965cd89c..f50754992c 100644 --- a/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c +++ b/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c @@ -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); }