Replace ps inner stmt id calculated position in sql audit

This commit is contained in:
obdev
2023-04-04 03:41:57 +00:00
committed by ob-robot
parent d223aa2f28
commit 2ad78b0e63
10 changed files with 26 additions and 15 deletions

View File

@ -1649,14 +1649,6 @@ const ObAuditRecordData &ObSQLSessionInfo::get_final_audit_record(
audit_record_.sql_cs_type_ = CS_TYPE_INVALID;
}
if (OB_SUCC(ret) && OB_INVALID_STMT_ID != audit_record_.ps_stmt_id_) {
ObPsStmtId inner_stmt_id = OB_INVALID_STMT_ID;
if (OB_SUCC(get_inner_ps_stmt_id(audit_record_.ps_stmt_id_, inner_stmt_id))) {
audit_record_.ps_inner_stmt_id_ = inner_stmt_id;
} else {
ret = OB_SUCCESS;
}
}
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_;