Skip to content

Commit 070aa78

Browse files
authored
Merge pull request #149804 from cockroachdb/blathers/backport-release-24.3-149695
release-24.3: catalog: make DescriptorType unredactable
2 parents 8b03c8d + edab295 commit 070aa78

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

pkg/sql/catalog/descriptor.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ import (
3131
// DescriptorType is a symbol representing the (sub)type of a descriptor.
3232
type DescriptorType string
3333

34+
var _ redact.SafeValue = DescriptorType("")
35+
36+
// SafeValue implements redact.SafeValue.
37+
func (DescriptorType) SafeValue() {}
38+
3439
const (
3540
// Any represents any descriptor.
3641
Any DescriptorType = "any"

pkg/testutils/lint/passes/redactcheck/redactcheck.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ func runAnalyzer(pass *analysis.Pass) (interface{}, error) {
172172
"github.com/cockroachdb/cockroach/pkg/server/license": {
173173
"LicType": {},
174174
},
175+
"github.com/cockroachdb/cockroach/pkg/sql/catalog": {
176+
"DescriptorType": {},
177+
},
175178
"github.com/cockroachdb/cockroach/pkg/sql/catalog/catpb": {
176179
"JobID": {},
177180
"ScheduleID": {},

0 commit comments

Comments
 (0)