Skip to content

Commit 52ad18b

Browse files
tbgsumeerbhola
authored andcommitted
mmaprototype: fix redactability
1 parent d12ede3 commit 52ad18b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/kv/kvserver/allocator/mmaprototype/cluster_state.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ func (cs *clusterState) processStoreLeaseholderMsgInternal(
13351335
// changes, and these are the changes that are pending. This is hacky
13361336
// and should be cleaned up.
13371337
var valid bool
1338-
var reason string
1338+
var reason redact.RedactableString
13391339
if gcRemainingChanges {
13401340
reason = "GCing remaining changes after partial enactment"
13411341
} else {
@@ -1346,7 +1346,7 @@ func (cs *clusterState) processStoreLeaseholderMsgInternal(
13461346
err := cs.preCheckOnApplyReplicaChanges(remainingReplicaChanges)
13471347
valid = err == nil
13481348
if err != nil {
1349-
reason = err.Error()
1349+
reason = redact.Sprint(err)
13501350
}
13511351
// Restore it.
13521352
rs.pendingChanges = rc

0 commit comments

Comments
 (0)