summaryrefslogtreecommitdiff
path: root/src/mongo/s/balancer_policy.cpp
diff options
context:
space:
mode:
authorShaun Verch <shaun.verch@10gen.com>2012-11-29 18:16:08 -0800
committerShaun Verch <shaun.verch@10gen.com>2012-12-18 11:39:20 -0500
commit566cf01bd870036b0dfd4b2babaf414b65de444c (patch)
tree62183f841b816d4bd2a7b38fe9cd8b33c1ba8960 /src/mongo/s/balancer_policy.cpp
parent95aec02bdeb20e4529c140464996b8b47d9dd7e8 (diff)
downloadmongo-566cf01bd870036b0dfd4b2babaf414b65de444c.tar.gz
SERVER-939 Changed ChunkFields to ChunkType
Diffstat (limited to 'src/mongo/s/balancer_policy.cpp')
-rw-r--r--src/mongo/s/balancer_policy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/balancer_policy.cpp b/src/mongo/s/balancer_policy.cpp
index 74e53c2e0e1..3edf832da58 100644
--- a/src/mongo/s/balancer_policy.cpp
+++ b/src/mongo/s/balancer_policy.cpp
@@ -169,7 +169,7 @@ namespace mongo {
if ( _tagRanges.size() == 0 )
return "";
- BSONObj min = chunk[ChunkFields::min()].Obj();
+ BSONObj min = chunk[ChunkType::min()].Obj();
map<BSONObj,TagRange>::const_iterator i = _tagRanges.upper_bound( min );
if ( i == _tagRanges.end() )
@@ -205,7 +205,7 @@ namespace mongo {
}
bool BalancerPolicy::_isJumbo( const BSONObj& chunk ) {
- if ( chunk[ChunkFields::jumbo()].trueValue() ) {
+ if ( chunk[ChunkType::jumbo()].trueValue() ) {
LOG(1) << "chunk: " << chunk << "is marked as jumbo" << endl;
return true;
}