From d504c4e98f28bfabc408736671b1410514d172ae Mon Sep 17 00:00:00 2001 From: Kevin Pulo Date: Wed, 16 Jan 2019 23:53:01 +0000 Subject: SERVER-39030 fix logging of low cardinality keys in splitVector --- src/mongo/db/s/split_vector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mongo/db/s/split_vector.cpp b/src/mongo/db/s/split_vector.cpp index 8d759163347..3ec13d27614 100644 --- a/src/mongo/db/s/split_vector.cpp +++ b/src/mongo/db/s/split_vector.cpp @@ -253,7 +253,7 @@ StatusWith> splitVector(OperationContext* opCtx, // Warn for keys that are more numerous than maxChunkSize allows. for (auto it = tooFrequentKeys.cbegin(); it != tooFrequentKeys.cend(); ++it) { warning() << "possible low cardinality key detected in " << nss.toString() - << " - key is " << prettyKey(idx->keyPattern(), *it); + << " - key is " << redact(prettyKey(idx->keyPattern(), *it)); } // Remove the sentinel at the beginning before returning -- cgit v1.2.1