Skip to content

Commit

Permalink
Merge pull request #123222 from cockroachdb/blathers/backport-release…
Browse files Browse the repository at this point in the history
…-24.1-123169

release-24.1: server: don't redact jemalloc stats
  • Loading branch information
RaduBerinde committed May 9, 2024
2 parents 5290363 + 6dcf114 commit a9afd89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/server/status/runtime_jemalloc.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ import (
"strings"

"github.com/cockroachdb/cockroach/pkg/util/log"
"github.com/cockroachdb/redact"
"github.com/dustin/go-humanize"
)

Expand All @@ -106,7 +107,7 @@ func getJemallocStats(ctx context.Context) (uint, uint, error) {
for i := 0; i < v.NumField(); i++ {
stats[i] = t.Field(i).Name + ": " + humanize.IBytes(uint64(v.Field(i).Interface().(C.size_t)))
}
log.Infof(ctx, "jemalloc stats: %s", strings.Join(stats, " "))
log.Infof(ctx, "jemalloc stats: %s", redact.Safe(strings.Join(stats, " ")))
}

// NB: the `!V(MaxInt32)` condition is a workaround to not spew this to the
Expand Down

0 comments on commit a9afd89

Please sign in to comment.