[DOCS-1377] Several missing fields in db.isMaster() docs Created: 10/Apr/13  Updated: 19/Apr/13  Resolved: 11/Apr/13

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

Type: Improvement Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Ed Costello
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 10 years, 45 weeks ago

 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.



 Comments   
Comment by Hannes Magnusson [ 10/Apr/13 ]

tags: lists the tags available on that replicaset node
passives: lists all secondaries with priority=0
maxMessageSizeBytes: (new in 2.4 I believe) the maximum supported message size

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