diff --git a/src/common/src/tglobal.c b/src/common/src/tglobal.c index 7c49c2602211423669bfdd0bab433d2111110883..7f8b682909fd7e9bb60b6fa5ebdaadb0639eb16a 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);