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

Several missing fields in db.isMaster() docs

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Last comment by Customer:
      true

      Description

      The docs on http://docs.mongodb.org/manual/reference/command/isMaster/#dbcmd.isMaster are missing several fields:

      • tags
      • passives
      • maxMessageSizeBytes

      And "arbiter" should be "arbiters".

      anden(mongod-2.5.0-pre-)[PRIMARY/REPLICASET] test> db.isMaster()
      {
        "setName": "REPLICASET",
        "ismaster": true,
        "secondary": false,
        "hosts": [
          "anden.local:30200",
          "anden.local:30202",
          "anden.local:30201"
        ],
        "arbiters": [
          "anden.local:30204"
        ],
        "passives": [
          "anden.local:30203"
        ],
        "primary": "anden.local:30200",
        "tags": {
          "dc": "ny",
          "server": "0"
        },
        "me": "anden.local:30200",
        "maxBsonObjectSize": 16777216,
        "maxMessageSizeBytes": 48000000,
        "localTime": ISODate("2013-04-10T11:42:04.391-0700"),
        "ok": 1
      }

      Also, mongos returns:

      {
        "ismaster": true,
        "msg": "isdbgrid",
        "maxBsonObjectSize": 16777216,
        "maxMessageSizeBytes": 48000000,
        "localTime": ISODate("2013-04-10T11:47:03.902-0700"),
        "ok": 1
      }

      So the "msg" field is missing too.

        Attachments

          Activity

            People

            Assignee:
            epc Ed Costello
            Reporter:
            bjori Hannes Magnusson
            Participants:
            Last commenter:
            Jonathan Dahl Jonathan Dahl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since reply:
              8 years, 29 weeks, 2 days ago
              Date of 1st Reply: