From f3b737b5a274bfb6868cf11453adc44838d45a40 Mon Sep 17 00:00:00 2001 From: slzhou Date: Sun, 20 Nov 2022 22:50:22 +0800 Subject: [PATCH] fix: typo error and add log --- src/common/src/tglobal.c | 2 +- src/query/src/queryMain.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/src/tglobal.c b/src/common/src/tglobal.c index 537d1eafc0..58f144c587 100644 --- a/src/common/src/tglobal.c +++ b/src/common/src/tglobal.c @@ -1831,7 +1831,7 @@ static void doInitGlobalConfig(void) { cfg.unitType = TAOS_CFG_UTYPE_NONE; taosInitConfigOption(cfg); - cfg.option = "queryRssThresold"; + cfg.option = "queryRssThreshold"; cfg.ptr = &tsQueryRssThreshold; cfg.valType = TAOS_CFG_VTYPE_INT32; cfg.cfgType = TSDB_CFG_CTYPE_B_CONFIG; diff --git a/src/query/src/queryMain.c b/src/query/src/queryMain.c index 23e65cd281..85e60929d9 100644 --- a/src/query/src/queryMain.c +++ b/src/query/src/queryMain.c @@ -74,6 +74,7 @@ int32_t qCreateQueryInfo(void* tsdb, int32_t vgId, SQueryTableMsg* pQueryMsg, qi float procMemory = 0; if (taosGetProcMemory(&procMemory)) { if (tsQueryRssThreshold > 0 && procMemory >= tsQueryRssThreshold) { + qError("Exceeds query memory RSS threshold. RSS: %f, threshold: %d", procMemory, tsQueryRssThreshold); code = TSDB_CODE_QRY_RSS_THRESHOLD; goto _over; } -- GitLab