From 00ce16ed445e586d3130b624746952ad41a0a23a Mon Sep 17 00:00:00 2001 From: Shungang Li Date: Fri, 26 Jul 2024 09:32:51 +0800 Subject: [PATCH] fix: taosSetServerCfg return --- source/common/src/tglobal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/common/src/tglobal.c b/source/common/src/tglobal.c index b85654da6d..df885e6924 100644 --- a/source/common/src/tglobal.c +++ b/source/common/src/tglobal.c @@ -1152,7 +1152,7 @@ static int32_t taosSetServerCfg(SConfig *pCfg) { tsSlowLogThreshold = cfgGetItem(pCfg, "slowLogThreshold")->i32; tsSlowLogMaxLen = cfgGetItem(pCfg, "slowLogMaxLen")->i32; int32_t scope = 0; - TAOS_RETURN(taosSetSlowLogScope(cfgGetItem(pCfg, "slowLogScope")->str, &scope)); + TAOS_CHECK_RETURN(taosSetSlowLogScope(cfgGetItem(pCfg, "slowLogScope")->str, &scope)); tsSlowLogScope = scope; tsEnableMonitor = cfgGetItem(pCfg, "monitor")->bval;