From e7953ad541ade1c19eac0c6571bd0f316cd99344 Mon Sep 17 00:00:00 2001 From: dmchen Date: Thu, 25 Jan 2024 03:26:04 +0000 Subject: [PATCH] revert client change --- source/client/src/clientEnv.c | 4 ---- source/client/src/selectMonitor.c | 2 +- source/client/src/slowQueryMonitor.c | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/source/client/src/clientEnv.c b/source/client/src/clientEnv.c index bb77c530c3..d5f444a0e3 100644 --- a/source/client/src/clientEnv.c +++ b/source/client/src/clientEnv.c @@ -83,8 +83,6 @@ static void deregisterRequest(SRequestObj *pRequest) { int32_t num = atomic_sub_fetch_32(&pTscObj->numOfReqs, 1); int32_t reqType = SLOW_LOG_TYPE_OTHERS; - //taosSsleep(3); - int64_t duration = taosGetTimestampUs() - pRequest->metric.start; tscDebug("0x%" PRIx64 " free Request from connObj: 0x%" PRIx64 ", reqId:0x%" PRIx64 " elapsed:%.2f ms, " @@ -111,8 +109,6 @@ static void deregisterRequest(SRequestObj *pRequest) { } } - duration = 7000000; - if (duration >= (tsSlowLogThreshold * 1000000UL)) { atomic_add_fetch_64((int64_t *)&pActivity->numOfSlowQueries, 1); if (tsSlowLogScope & reqType) { diff --git a/source/client/src/selectMonitor.c b/source/client/src/selectMonitor.c index 58aba8de0b..c1cab23188 100644 --- a/source/client/src/selectMonitor.c +++ b/source/client/src/selectMonitor.c @@ -16,7 +16,7 @@ #include "clientMonitor.h" #include "clientLog.h" -const char* selectMonitorName = "slow_query:slow_query_metric"; +const char* selectMonitorName = "slow_query"; const char* selectMonitorHelp = "slow query log when cost > 3s"; const int selectMonitorLabelCount = 1; const char* selectMonitorLabels[] = {"default"}; diff --git a/source/client/src/slowQueryMonitor.c b/source/client/src/slowQueryMonitor.c index 4af00f5360..420b66a954 100644 --- a/source/client/src/slowQueryMonitor.c +++ b/source/client/src/slowQueryMonitor.c @@ -17,7 +17,7 @@ #include "clientLog.h" #include "tglobal.h" -const char* slowQueryName = "slow_query:slow_query_metric"; +const char* slowQueryName = "slow_query"; const char* slowQueryHelp = "slow query log when cost > 3s"; const int slowQueryLabelCount = 1; const char* slowQueryLabels[] = {"cost"};