diff options
author | Kevin Pulo <kevin.pulo@mongodb.com> | 2019-01-16 23:53:01 +0000 |
---|---|---|
committer | Kevin Pulo <kevin.pulo@mongodb.com> | 2019-02-11 00:36:54 +0000 |
commit | a3e64efd6da26221d7ac4198901f4859507a2992 (patch) | |
tree | 0f391c5c0435ada7dd0bace44e11de990750b6b1 /src | |
parent | 288ea7f144105d47129871fe7351de458186f15b (diff) | |
download | mongo-a3e64efd6da26221d7ac4198901f4859507a2992.tar.gz |
SERVER-39030 fix logging of low cardinality keys in splitVector
(cherry picked from commit d504c4e98f28bfabc408736671b1410514d172ae)
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/s/split_vector.cpp | 2 |
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 3ff0b7ba085..833cace1dc2 100644 --- a/src/mongo/db/s/split_vector.cpp +++ b/src/mongo/db/s/split_vector.cpp @@ -254,7 +254,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 |