reduce get tenant config cost

This commit is contained in:
dimstars
2024-07-29 15:23:33 +00:00
committed by ob-robot
parent 8cb9272c66
commit 4270dfea0e
8 changed files with 36 additions and 20 deletions

View File

@ -4629,6 +4629,7 @@ int ObSQLUtils::handle_audit_record(bool need_retry,
const ObAuditRecordData &audit_record = session.get_final_audit_record(exec_mode);
if (OB_FAIL(req_manager->record_request(audit_record,
session.enable_query_response_time_stats(),
session.get_tenant_query_record_size_limit(),
is_sensitive))) {
if (OB_SIZE_OVERFLOW == ret || OB_ALLOCATE_MEMORY_FAILED == ret) {
LOG_DEBUG("cannot allocate mem for record", K(ret));