[td-225] fix compiler error.

This commit is contained in:
Haojun Liao 2020-10-26 15:26:15 +08:00
parent 0f68ec7387
commit 5ce1ff42e3
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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) {