10gen / mongo-orchestration

Apache License 2.0
7 stars 11 forks source link

Show replica set member state when returning info about replica set as a... #165

Closed llvtt closed 9 years ago

llvtt commented 9 years ago

... whole.

This makes it easier to figure out what member is primary, secondary, or an arbiter without having to send a second request. The "state" field corresponds to one of these: http://docs.mongodb.org/manual/reference/replica-states/. See also http://docs.mongodb.org/manual/reference/command/replSetGetStatus/.

behackett commented 9 years ago

LGTM