summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-03-05 18:25:48 -0500
committerEliot Horowitz <eliot@10gen.com>2011-03-05 21:10:19 -0500
commitfa09f824edaf225e34fe8ecd82979d8ae5782474 (patch)
tree2828dcc0943b068026f278b31084049da73550b3
parent66af39a8b3a5c197c291dd36b6b80ae6825267ba (diff)
downloadmongo-fa09f824edaf225e34fe8ecd82979d8ae5782474.tar.gz
use .trueValue() rather than .Bool() for backwards compat. 180
-rw-r--r--s/balancer_policy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/s/balancer_policy.cpp b/s/balancer_policy.cpp
index 0597a08945f..2098a1f7faf 100644
--- a/s/balancer_policy.cpp
+++ b/s/balancer_policy.cpp
@@ -155,7 +155,7 @@ namespace mongo {
bool BalancerPolicy::isDraining( BSONObj limits ) {
BSONElement draining = limits[ ShardFields::draining.name() ];
- if ( draining.eoo() || ! draining.Bool() ) {
+ if ( draining.eoo() || ! draining.trueValue() ) {
return false;
}
@@ -164,7 +164,7 @@ namespace mongo {
bool BalancerPolicy::hasOpsQueued( BSONObj limits ) {
BSONElement opsQueued = limits[ LimitsFields::hasOpsQueued.name() ];
- if ( opsQueued.eoo() || ! opsQueued.Bool() ) {
+ if ( opsQueued.eoo() || ! opsQueued.trueValue() ) {
return false;
}
return true;