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>
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)