Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-768

sh.getBalancerState().pretty() - not a function

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 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 true; }

      return !x.stopped;
      }

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

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

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            rn@deftlabs.com Ryan Nitz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11 years, 13 weeks, 2 days ago