summaryrefslogtreecommitdiff
path: root/src/mongo/s/cluster_write.cpp
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2016-10-11 19:07:22 -0400
committerAndrew Morrow <acm@mongodb.com>2016-10-12 18:42:20 -0400
commit8794dd4bdcab131a4ecf0963505e7fb2a34bf5e6 (patch)
tree893bfa3efc70969a894473e8c31fb59b76ad65a7 /src/mongo/s/cluster_write.cpp
parentbf547fcd6cb2538ac9bbe78ee88c485c468d6ad8 (diff)
downloadmongo-8794dd4bdcab131a4ecf0963505e7fb2a34bf5e6.tar.gz
SERVER-26587 Use correct iterator types for BSON keyed associative types
Diffstat (limited to 'src/mongo/s/cluster_write.cpp')
-rw-r--r--src/mongo/s/cluster_write.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/s/cluster_write.cpp b/src/mongo/s/cluster_write.cpp
index f7e8f460148..f35d78fec3e 100644
--- a/src/mongo/s/cluster_write.cpp
+++ b/src/mongo/s/cluster_write.cpp
@@ -140,9 +140,7 @@ void splitIfNeeded(OperationContext* txn, const NamespaceString& nss, const Targ
return;
}
- for (map<BSONObj, int>::const_iterator it = stats.chunkSizeDelta.begin();
- it != stats.chunkSizeDelta.end();
- ++it) {
+ for (auto it = stats.chunkSizeDelta.cbegin(); it != stats.chunkSizeDelta.cend(); ++it) {
shared_ptr<Chunk> chunk;
try {
chunk = chunkManager->findIntersectingChunkWithSimpleCollation(txn, it->first);