summaryrefslogtreecommitdiff
path: root/s
diff options
context:
space:
mode:
authorDwight <dwight@10gen.com>2010-05-04 17:43:53 -0400
committerDwight <dwight@10gen.com>2010-05-04 17:43:53 -0400
commit4b81c59f016a96de9feebc36c5159a7a99999cdb (patch)
treed3c2146e8e9c7c7198cad23012de7fbc1dc8b17f /s
parent2d7f26f121d698147fc9a4e5e26dca1e7ecfc20b (diff)
downloadmongo-4b81c59f016a96de9feebc36c5159a7a99999cdb.tar.gz
compile
Diffstat (limited to 's')
-rw-r--r--s/chunk.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/s/chunk.cpp b/s/chunk.cpp
index ca34706daee..261140ecb2e 100644
--- a/s/chunk.cpp
+++ b/s/chunk.cpp
@@ -851,7 +851,7 @@ namespace mongo {
assert(allOfType(MaxKey, prior(_ranges.end())->second->getMax()));
// Make sure there are no gaps or overlaps
- for (ChunkRangeMap::const_iterator it=next(_ranges.begin()), end=_ranges.end(); it != end; ++it){
+ for (ChunkRangeMap::const_iterator it=boost::next(_ranges.begin()), end=_ranges.end(); it != end; ++it){
ChunkRangeMap::const_iterator last = prior(it);
assert(it->second->getMin() == last->second->getMax());
}
@@ -938,10 +938,10 @@ namespace mongo {
high = _ranges.lower_bound(max);
if (high != prior(_ranges.end())){
shared_ptr<ChunkRange> a = high->second;
- shared_ptr<ChunkRange> b = next(high)->second;
+ shared_ptr<ChunkRange> b = boost::next(high)->second;
if (a->getShard() == b->getShard()){
shared_ptr<ChunkRange> cr (new ChunkRange(*a, *b));
- _ranges.erase(next(high));
+ _ranges.erase(boost::next(high));
_ranges.erase(high); //invalidates high
_ranges[cr->getMax()] = cr;
}