0
0
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:
Kristina 2011-01-14 16:41:53 -05:00
parent 1050261fbe
commit 1e32f52162

View File

@ -356,11 +356,9 @@ namespace mongo {
// add self // add self
{ {
HostAndPort h(getHostName(), cmdLine.port);
BSONObjBuilder bb; BSONObjBuilder bb;
bb.append("_id", (int) _self->id()); bb.append("_id", (int) _self->id());
bb.append("name", h.toString()); bb.append("name", _self->fullName());
bb.append("health", 1.0); bb.append("health", 1.0);
bb.append("state", (int) box.getState().s); bb.append("state", (int) box.getState().s);
bb.append("stateStr", box.getState().toString()); bb.append("stateStr", box.getState().toString());