From: Sage Weil Date: Thu, 18 Jul 2013 21:50:32 +0000 (-0700) Subject: client: mark_down by con X-Git-Tag: v0.67-rc1~16^2~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=11c47cc4e3ddac54a5b2bb2623cf59b77917f555;p=ceph.git 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 --- diff --git a/src/client/Client.cc b/src/client/Client.cc index ae7ddf65db48..eb7502c1530c 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -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)