Skip to content

Commit

Permalink
jobspb: mark ResolvedSpan_BoundaryType as SafeValue
Browse files Browse the repository at this point in the history
This patch marks `jobspb.ResolvedSpan_BoundaryType` as a SafeValue
so that it won't be redacted in the logs.

Release note: None
  • Loading branch information
andyyang890 committed Dec 13, 2024
1 parent 95d95a6 commit 2e66bb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pkg/jobs/jobspb/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ func (rse ResolvedSpanEntries) Equal(rse2 ResolvedSpanEntries) bool {
}
return true
}

// SafeValue implements the redact.SafeValue interface.
func (ResolvedSpan_BoundaryType) SafeValue() {}
3 changes: 2 additions & 1 deletion pkg/testutils/lint/passes/redactcheck/redactcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ func runAnalyzer(pass *analysis.Pass) (interface{}, error) {
"Status": {},
},
"github.com/cockroachdb/cockroach/pkg/jobs/jobspb": {
"Type": {},
"Type": {},
"ResolvedSpan_BoundaryType": {},
},
"github.com/cockroachdb/cockroach/pkg/kv/bulk": {
"sz": {},
Expand Down

0 comments on commit 2e66bb2

Please sign in to comment.