Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
None
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.