summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Pulo <kevin.pulo@mongodb.com>2019-01-16 23:53:01 +0000
committerKevin Pulo <kevin.pulo@mongodb.com>2019-01-17 11:13:39 +0000
commitd504c4e98f28bfabc408736671b1410514d172ae (patch)
tree233adbcea12f247ead591122e11e8b0f8a38f489
parentf07694654f3733ff664cdb8b48cee37486095c55 (diff)
downloadmongo-d504c4e98f28bfabc408736671b1410514d172ae.tar.gz
SERVER-39030 fix logging of low cardinality keys in splitVector
-rw-r--r--src/mongo/db/s/split_vector.cpp2
1 files changed, 1 insertions, 1 deletions
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<std::vector<BSONObj>> 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