From 2035a93335c295f708c17e892b98c6a436a389b8 Mon Sep 17 00:00:00 2001 From: tickduan <417921451@qq.com> Date: Thu, 22 Jul 2021 19:56:29 +0800 Subject: [PATCH] reset no change code --- src/common/src/tglobal.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/common/src/tglobal.c b/src/common/src/tglobal.c index 76179d3edc..4f32bd2056 100644 --- a/src/common/src/tglobal.c +++ b/src/common/src/tglobal.c @@ -312,6 +312,13 @@ bool taosCfgDynamicOptions(char *msg) { int32_t cfgLen = (int32_t)strlen(cfg->option); if (cfgLen != olen) continue; + if (strncasecmp(option, cfg->option, olen) != 0) continue; + if (cfg->valType == TAOS_CFG_VTYPE_INT32) { + *((int32_t *)cfg->ptr) = vint; + } else { + *((int8_t *)cfg->ptr) = (int8_t)vint; + } + if (strncasecmp(cfg->option, "monitor", olen) == 0) { if (1 == vint) { if (monStartSystemFp) { @@ -1526,7 +1533,7 @@ static void doInitGlobalConfig(void) { #ifdef TD_TSZ // lossy compress - cfg.option = "lossyColumns"; + cfg.option = "lossyColumns"; cfg.ptr = lossyColumns; cfg.valType = TAOS_CFG_VTYPE_STRING; cfg.cfgType = TSDB_CFG_CTYPE_B_CONFIG; -- GitLab