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

Several missing fields in db.isMaster() docs

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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.

            Assignee:
            epc Ed Costello
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              11 years, 3 weeks ago