Skip to content

Commit 3e01ba6

Browse files
committed
stmtdiagnostics: don't create statement dignostics request for txn diagnostics
Previously, `innerInsertStatementDiagnostics` was creating new statement diagnostics requests when a transaction diagnostics bundle was being created. Now, these new statement requests will no longer be created. Epic: CRDB-53541 Release note: None
1 parent 2a1771e commit 3e01ba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sql/stmtdiagnostics/statement_diagnostics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ func (r *Registry) innerInsertStatementDiagnostics(
653653
if err != nil {
654654
return diagID, err
655655
}
656-
} else {
656+
} else if txnDiagnosticId == 0 {
657657
// Insert a completed request into system.statement_diagnostics_request.
658658
// This is necessary because the UI uses this table to discover completed
659659
// diagnostics.

0 commit comments

Comments
 (0)