add more info to sql audit snapshot source field

This commit is contained in:
felix-w15
2024-01-05 10:12:45 +00:00
committed by ob-robot
parent 91b686ae2e
commit 1682d1019d
10 changed files with 58 additions and 12 deletions

View File

@ -560,7 +560,8 @@ int ObSqlTransControl::start_stmt(ObExecContext &exec_ctx)
ar_snapshot.version_ = snapshot.core_.version_;
ar_snapshot.tx_id_ = snapshot.core_.tx_id_.get_id();
ar_snapshot.scn_ = snapshot.core_.scn_.cast_to_int();
ar_snapshot.source_ = snapshot.get_source_name().ptr();
(void)snapshot.generate_snapshot_source(audit_record.snapshot_source_, sizeof(audit_record.snapshot_source_));
ar_snapshot.source_ = audit_record.snapshot_source_;
}
if (OB_SUCC(ret) && !session->has_start_stmt()) {
OZ (session->set_start_stmt());