From aa61681514d31902a16aa21f7bcb82a0db32d4cd Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Wed, 22 Dec 2021 10:59:23 +0800 Subject: [PATCH] type convert --- src/common/src/tglobal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/src/tglobal.c b/src/common/src/tglobal.c index 7c49c26022..7f8b682909 100644 --- a/src/common/src/tglobal.c +++ b/src/common/src/tglobal.c @@ -1627,7 +1627,7 @@ static void doInitGlobalConfig(void) { cfg.valType = TAOS_CFG_VTYPE_INT32; cfg.cfgType = TSDB_CFG_CTYPE_B_CONFIG | TSDB_CFG_CTYPE_B_SHOW; cfg.minValue = 0; - cfg.maxValue = 2147483647; + cfg.maxValue = (float)((1 << 30) - 1); // N.B. not precise, buffer reserved cfg.ptrLength = 0; cfg.unitType = TAOS_CFG_UTYPE_NONE; taosInitConfigOption(cfg); -- GitLab