Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
None
Description
The documentation for the function calls is off.
I tested this in the 2.0.2 and 2.2.0 shells.
---------------------------
mongos> sh.getBalancerState().pretty()
Fri Nov 16 20:15:45 TypeError: sh.getBalancerState().pretty is not a function (shell):1
---------------------------
mongos> sh.getBalancerState();
false
---------------------------
Here are the function calls:
mongos> sh.getBalancerState
function () {
var x = db.getSisterDB("config").settings.findOne({_id:"balancer"});
if (x == null)
return !x.stopped;
}
---------------------------
mongos> sh.isBalancerRunning
function () {
var x = db.getSisterDB("config").locks.findOne({_id:"balancer"});
return x.state > 0;
}