Skip to content

Commit

Permalink
Merge pull request cockroachdb#128934 from cockroachdb/blathers/backp…
Browse files Browse the repository at this point in the history
…ort-release-24.2-128689

release-24.2: sqlstats: don't redact informational log message
  • Loading branch information
rafiss authored Aug 20, 2024
2 parents bebc3fe + c8c27af commit cfa078a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/sql/sqlstats/persistedsqlstats/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ go_library(
"//pkg/util/timeutil",
"//pkg/util/uuid",
"@com_github_cockroachdb_errors//:errors",
"@com_github_cockroachdb_redact//:redact",
"@com_github_gogo_protobuf//types",
"@com_github_robfig_cron_v3//:cron",
],
Expand Down
5 changes: 4 additions & 1 deletion pkg/sql/sqlstats/persistedsqlstats/flush.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
"github.com/cockroachdb/cockroach/pkg/util/stop"
"github.com/cockroachdb/cockroach/pkg/util/timeutil"
"github.com/cockroachdb/errors"
"github.com/cockroachdb/redact"
)

// MaybeFlush flushes in-memory sql stats into a system table, returning true if the flush
Expand Down Expand Up @@ -172,7 +173,9 @@ func (s *PersistedSQLStats) StmtsLimitSizeReached(ctx context.Context) (bool, er
return isSizeLimitReached, nil
}

func (s *PersistedSQLStats) doFlush(ctx context.Context, workFn func() error, errMsg string) {
func (s *PersistedSQLStats) doFlush(
ctx context.Context, workFn func() error, errMsg redact.RedactableString,
) {
var err error

defer func() {
Expand Down

0 comments on commit cfa078a

Please sign in to comment.