[master] add sql_audit txn-route diagnose info

This commit is contained in:
chinaxing
2023-02-14 04:15:02 +00:00
committed by ob-robot
parent 6d1f508977
commit 092b683a60
16 changed files with 204 additions and 42 deletions

View File

@ -1660,6 +1660,7 @@ const ObAuditRecordData &ObSQLSessionInfo::get_final_audit_record(
}
}
audit_record_.txn_free_route_flag_ = txn_free_route_ctx_.get_audit_record();
audit_record_.txn_free_route_version_ = txn_free_route_ctx_.get_global_version();
return audit_record_;
}
@ -2453,7 +2454,7 @@ void ObSQLSessionInfo::post_sync_session_info()
void ObSQLSessionInfo::set_txn_free_route(bool txn_free_route)
{
txn_free_route_ctx_.reset_audit_record();
txn_free_route_ctx_.set_proxy_support(txn_free_route);
txn_free_route_ctx_.init_before_update_state(txn_free_route);
}
bool ObSQLSessionInfo::can_txn_free_route() const