diff options
author | Andrew Morrow <acm@mongodb.com> | 2016-10-11 19:07:22 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2016-10-12 18:42:20 -0400 |
commit | 8794dd4bdcab131a4ecf0963505e7fb2a34bf5e6 (patch) | |
tree | 893bfa3efc70969a894473e8c31fb59b76ad65a7 /src/mongo/db/s/split_vector_command.cpp | |
parent | bf547fcd6cb2538ac9bbe78ee88c485c468d6ad8 (diff) | |
download | mongo-8794dd4bdcab131a4ecf0963505e7fb2a34bf5e6.tar.gz |
SERVER-26587 Use correct iterator types for BSON keyed associative types
Diffstat (limited to 'src/mongo/db/s/split_vector_command.cpp')
-rw-r--r-- | src/mongo/db/s/split_vector_command.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/db/s/split_vector_command.cpp b/src/mongo/db/s/split_vector_command.cpp index 9b013430f3b..ec70e321202 100644 --- a/src/mongo/db/s/split_vector_command.cpp +++ b/src/mongo/db/s/split_vector_command.cpp @@ -349,9 +349,7 @@ public: // // Warn for keys that are more numerous than maxChunkSize allows. - for (set<BSONObj>::const_iterator it = tooFrequentKeys.begin(); - it != tooFrequentKeys.end(); - ++it) { + for (auto it = tooFrequentKeys.cbegin(); it != tooFrequentKeys.cend(); ++it) { warning() << "possible low cardinality key detected in " << nss.toString() << " - key is " << prettyKey(idx->keyPattern(), *it); } |