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

@ -1230,6 +1230,7 @@ int ObMPStmtExecute::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();
}
audit_record.affected_rows_ = result.get_affected_rows();
audit_record.return_rows_ = result.get_return_rows();