transfer the query response time collection to sql audit consumer thread

This commit is contained in:
LINxiansheng
2022-08-04 19:28:51 +08:00
committed by wangzelin.wzl
parent 18b5b5be8b
commit 727c5bf512
2 changed files with 4 additions and 2 deletions

View File

@ -57,7 +57,6 @@ EVENT_INFO(FUSE_ROW_CACHE_MISS, fuse_row_cache_miss)
#include "sql/ob_sql_define.h"
#include "sql/plan_cache/ob_plan_cache_util.h"
#include "observer/virtual_table/ob_information_query_response_time.h"
#include "observer/mysql/ob_query_response_time.h"
namespace oceanbase {
namespace sql {
struct ObExecRecord {
@ -343,7 +342,6 @@ struct ObAuditRecordData {
EVENT_ADD(SYS_TIME_MODEL_DB_TIME, elapsed_time);
EVENT_ADD(SYS_TIME_MODEL_DB_CPU, cpu_time);
}
observer::ObRSTCollector::get_instance().collect_query_response_time(tenant_id_,elapsed_time);
}
bool is_timeout() const