[FEAT MERGE] OLTP performance and cpu reduction optimization under tiny specification

Co-authored-by: hezuojiao <hezuojiao@gmail.com>
This commit is contained in:
obdev
2023-04-26 15:30:17 +00:00
committed by ob-robot
parent 8ad13af591
commit 8fb50cdf65
179 changed files with 3131 additions and 1425 deletions

View File

@ -3979,14 +3979,12 @@ int ObSQLUtils::handle_audit_record(bool need_retry,
// failed to get request manager, maybe tenant has been dropped, NOT NEED TO record;
} else {
const ObAuditRecordData &audit_record = session.get_final_audit_record(exec_mode);
if (OB_FAIL(req_manager->record_request(audit_record, is_sensitive))) {
if (OB_FAIL(req_manager->record_request(audit_record,
session.enable_query_response_time_stats(),
is_sensitive))) {
if (OB_SIZE_OVERFLOW == ret || OB_ALLOCATE_MEMORY_FAILED == ret) {
LOG_DEBUG("cannot allocate mem for record", K(ret));
ret = OB_SUCCESS;
} else {
if (REACH_TIME_INTERVAL(100 * 1000)) { // in case logging is too frequent
LOG_WARN("failed to record request info in request manager", K(ret));
}
}
}
}