client: mark_down by con

We have the con handy; use it.  This avoids generate a spurious RESET
event, which we do not need or do anything useful with.  Note that in this
case we are not attaching anything to the Connection priv field.

Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2013-07-18 14:50:32 -07:00 committed by Greg Farnum
parent 000d4d38a4
commit 11c47cc4e3

View File

@ -1882,7 +1882,7 @@ void Client::handle_mds_map(MMDSMap* m)
int newstate = mdsmap->get_state(p->first);
if (!mdsmap->is_up(p->first) ||
mdsmap->get_inst(p->first) != p->second->inst) {
messenger->mark_down(p->second->inst.addr);
messenger->mark_down(p->second->con);
if (mdsmap->is_up(p->first))
p->second->inst = mdsmap->get_inst(p->first);
} else if (oldstate == newstate)