From a2de7184664167e4b855b8731d8c30be0f49d83e Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Sat, 15 Jan 2022 19:37:18 +0800 Subject: [PATCH] [TD-11437](connector,query,insert,other,tools,taosAdapter):add shortcutFlag to facilitate analysis of insert performance --- src/common/src/tglobal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/src/tglobal.c b/src/common/src/tglobal.c index 3c82a97d61..f2942848ee 100644 --- a/src/common/src/tglobal.c +++ b/src/common/src/tglobal.c @@ -1749,6 +1749,7 @@ static void doInitGlobalConfig(void) { cfg.ptrLength = 0; cfg.unitType = TAOS_CFG_UTYPE_MB; taosInitConfigOption(cfg); + size_t a = sizeof(float); // shortcut flag to facilitate debugging cfg.option = "shortcutFlag"; @@ -1756,7 +1757,7 @@ static void doInitGlobalConfig(void) { cfg.valType = TAOS_CFG_VTYPE_INT32; cfg.cfgType = TSDB_CFG_CTYPE_B_CONFIG | TSDB_CFG_CTYPE_B_SHOW | TSDB_CFG_CTYPE_B_CLIENT; cfg.minValue = 0; - cfg.maxValue = INT32_MAX; + cfg.maxValue = (1 << 24); cfg.ptrLength = 0; cfg.unitType = TAOS_CFG_UTYPE_NONE; taosInitConfigOption(cfg); -- GitLab