[DOCS-768] sh.getBalancerState().pretty() - not a function Created: 16/Nov/12  Updated: 29/Nov/12  Resolved: 19/Nov/12

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Ryan Nitz Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 11 years, 13 weeks, 2 days ago

 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 true; }

return !x.stopped;
}

---------------------------

mongos> sh.isBalancerRunning
function () {
var x = db.getSisterDB("config").locks.findOne({_id:"balancer"});
return x.state > 0;
}



 Comments   
Comment by auto [ 19/Nov/12 ]

Author:

{u'date': u'2012-11-19T15:04:38Z', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}

Message: DOCS-768
Branch: master
https://github.com/mongodb/docs/commit/f4dff4331a54960c9f30b97d917d12303ceae9fb

Generated at Thu Feb 08 07:39:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.