From e02e9d46c2c378889b21eba90776ac243e5b9d6e Mon Sep 17 00:00:00 2001 From: Dan Pasette Date: Sat, 9 May 2020 03:26:13 +0000 Subject: SERVER-47913 Redact sharding messages in cleanupOrphanedData --- src/mongo/db/s/cleanup_orphaned_cmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mongo/db/s/cleanup_orphaned_cmd.cpp b/src/mongo/db/s/cleanup_orphaned_cmd.cpp index f5e947fa959..6a9bc668ba7 100644 --- a/src/mongo/db/s/cleanup_orphaned_cmd.cpp +++ b/src/mongo/db/s/cleanup_orphaned_cmd.cpp @@ -92,8 +92,8 @@ CleanupResult cleanupOrphanedData(OperationContext* opCtx, if (!startingFromKey.isEmpty()) { if (!metadata->isValidKey(startingFromKey)) { *errMsg = str::stream() << "could not cleanup orphaned data, start key " - << startingFromKey << " does not match shard key pattern " - << keyPattern; + << redact(startingFromKey) + << " does not match shard key pattern " << keyPattern; log() << *errMsg; return CleanupResult_Error; -- cgit v1.2.1