revert client change
This commit is contained in:
parent
f6ecd8d204
commit
e7953ad541
|
@ -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) {
|
||||
|
|
|
@ -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"};
|
||||
|
|
|
@ -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"};
|
||||
|
|
Loading…
Reference in New Issue