Skip to content

Commit

Permalink
Merge #97379
Browse files Browse the repository at this point in the history
97379: kvserver: unredact checkpoint paths in inconsistency message r=erikgrinaker a=pavelkalinnikov

Touches #97337
Release note: none
Epic: none

Co-authored-by: Pavel Kalinnikov <[email protected]>
  • Loading branch information
craig[bot] and pav-kv committed Feb 21, 2023
2 parents 560ea7d + 712ba45 commit 154712a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kv/kvserver/replica_consistency.go
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ command line tools like diff. For example:
$ cockroach debug range-data --replicated data/auxiliary/checkpoints/rN_at_M N
`
attentionArgs := []any{r, desc.Replicas(), auxDir, path}
attentionArgs := []any{r, desc.Replicas(), redact.Safe(auxDir), redact.Safe(path)}
preventStartupMsg := fmt.Sprintf(attentionFmt, attentionArgs...)
if err := fs.WriteFile(r.store.TODOEngine(), path, []byte(preventStartupMsg)); err != nil {
log.Warningf(ctx, "%v", err)
Expand Down

0 comments on commit 154712a

Please sign in to comment.