mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 00:56:44 +01:00
rs status uses config's hostname SERVER-2361
This commit is contained in:
parent
1050261fbe
commit
1e32f52162
@ -356,11 +356,9 @@ namespace mongo {
|
||||
|
||||
// add self
|
||||
{
|
||||
HostAndPort h(getHostName(), cmdLine.port);
|
||||
|
||||
BSONObjBuilder bb;
|
||||
bb.append("_id", (int) _self->id());
|
||||
bb.append("name", h.toString());
|
||||
bb.append("name", _self->fullName());
|
||||
bb.append("health", 1.0);
|
||||
bb.append("state", (int) box.getState().s);
|
||||
bb.append("stateStr", box.getState().toString());
|
||||
|
Loading…
Reference in New Issue
Block a user