From da149e8a22895e90e1bb3cd2504aff5ef16512c6 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Thu, 26 Aug 2021 17:12:56 +0800 Subject: [PATCH] [TD-5992] add test case --- src/util/src/tconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/src/tconfig.c b/src/util/src/tconfig.c index d70375721c..6ed9cff9fb 100644 --- a/src/util/src/tconfig.c +++ b/src/util/src/tconfig.c @@ -299,7 +299,7 @@ bool taosReadConfigOption(const char *option, char *value, char *value2, char *v for (int i = 0; i < tsGlobalConfigNum; ++i) { SGlobalCfg *cfg = tsGlobalConfig + i; if (!(cfg->cfgType & TSDB_CFG_CTYPE_B_CONFIG)) continue; - if (sourceType != 0 && !(sourceType & TSDB_CFG_CTYPE_B_CLIENT)) continue; + if (sourceType != 0 && !(cfg->cfgType & sourceType)) continue; if (strcasecmp(cfg->option, option) != 0) continue; switch (cfg->valType) { -- GitLab