fix: taosSetServerCfg return

This commit is contained in:
Shungang Li 2024-07-26 09:32:51 +08:00
parent eeb7991680
commit 00ce16ed44
1 changed files with 1 additions and 1 deletions

View File

@ -1152,7 +1152,7 @@ static int32_t taosSetServerCfg(SConfig *pCfg) {
tsSlowLogThreshold = cfgGetItem(pCfg, "slowLogThreshold")->i32; tsSlowLogThreshold = cfgGetItem(pCfg, "slowLogThreshold")->i32;
tsSlowLogMaxLen = cfgGetItem(pCfg, "slowLogMaxLen")->i32; tsSlowLogMaxLen = cfgGetItem(pCfg, "slowLogMaxLen")->i32;
int32_t scope = 0; int32_t scope = 0;
TAOS_RETURN(taosSetSlowLogScope(cfgGetItem(pCfg, "slowLogScope")->str, &scope)); TAOS_CHECK_RETURN(taosSetSlowLogScope(cfgGetItem(pCfg, "slowLogScope")->str, &scope));
tsSlowLogScope = scope; tsSlowLogScope = scope;
tsEnableMonitor = cfgGetItem(pCfg, "monitor")->bval; tsEnableMonitor = cfgGetItem(pCfg, "monitor")->bval;