Add PARTITION HIT flag to sql_audit.

This commit is contained in:
obdev
2023-01-28 19:20:26 +08:00
committed by ob-robot
parent fcde80b5d2
commit c24c75ed20
10 changed files with 82 additions and 5 deletions

View File

@ -927,6 +927,7 @@ OB_INLINE int ObMPQuery::do_process(ObSQLSessionInfo &session,
audit_record.plan_hash_ = plan->get_plan_hash_value();
audit_record.rule_name_ = const_cast<char *>(plan->get_rule_name().ptr());
audit_record.rule_name_len_ = plan->get_rule_name().length();
audit_record.partition_hit_ = session.partition_hit().get_bool();
}
if (OB_FAIL(ret) && audit_record.trans_id_ == 0) {
// normally trans_id is set in the `start-stmt` phase,