Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
<< " msg was " << m->get_source_inst().addr
<< " expected " << (osdmap->have_inst(from) ? osdmap->get_cluster_addr(from) : entity_addr_t())
<< dendl;
- cluster_messenger->mark_down(m->get_connection());
+ ConnectionRef con = m->get_connection();
+ con->set_priv(NULL); // break ref <-> session cycle, if any
+ cluster_messenger->mark_down(con.get());
return false;
}
}