From c9ffac1085a0f9ade30e5a1b0e0ee03fad097be5 Mon Sep 17 00:00:00 2001 From: Pavel Kalinnikov Date: Wed, 18 Dec 2024 18:28:16 +0000 Subject: [PATCH] kvflowcontrol: fix Stream type redaction Epic: none Release note: none --- pkg/kv/kvserver/kvflowcontrol/kvflowcontrol.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/kv/kvserver/kvflowcontrol/kvflowcontrol.go b/pkg/kv/kvserver/kvflowcontrol/kvflowcontrol.go index d127b221c654..e065f7d9c1a9 100644 --- a/pkg/kv/kvserver/kvflowcontrol/kvflowcontrol.go +++ b/pkg/kv/kvserver/kvflowcontrol/kvflowcontrol.go @@ -428,12 +428,12 @@ func (s Stream) String() string { } // SafeFormat implements the redact.SafeFormatter interface. -func (s Stream) SafeFormat(p redact.SafePrinter, verb rune) { +func (s Stream) SafeFormat(p redact.SafePrinter, _ rune) { tenantSt := s.TenantID.String() if s.TenantID.IsSystem() { tenantSt = "1" } - p.Printf("t%s/s%s", tenantSt, s.StoreID.String()) + p.Printf("t%s/s%s", redact.SafeString(tenantSt), s.StoreID) } var raftAdmissionMetaKey = ctxutil.RegisterFastValueKey()