From 5ce1ff42e38f68c3ff37badf61e3057dc473cfa8 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Mon, 26 Oct 2020 15:26:15 +0800 Subject: [PATCH] [td-225] fix compiler error. --- src/common/src/tglobal.c | 2 +- src/query/src/qExecutor.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/src/tglobal.c b/src/common/src/tglobal.c index 09ccdacc94..c067159b3b 100644 --- a/src/common/src/tglobal.c +++ b/src/common/src/tglobal.c @@ -850,7 +850,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 = -1; - cfg.maxValue = 10000000000000; //10TB + cfg.maxValue = 10000000000000.0; //10TB cfg.ptrLength = 0; cfg.unitType = TAOS_CFG_UTYPE_BYTE; taosInitConfigOption(cfg); diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index c53e0b4e45..3200dfd893 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -7147,7 +7147,7 @@ static int64_t getQuerySupportBufSize(int32_t numOfTables) { int32_t checkForQueryBuf(int32_t numOfTables) { int64_t t = getQuerySupportBufSize(numOfTables); if (tsQueryBufferSize < 0) { - return true; + return TSDB_CODE_SUCCESS; } else if (tsQueryBufferSize > 0) { while(1) { -- GitLab