]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: mark_down by con
authorSage Weil <sage@inktank.com>
Thu, 18 Jul 2013 21:50:32 +0000 (14:50 -0700)
committerSage Weil <sage@inktank.com>
Thu, 18 Jul 2013 22:02:09 +0000 (15:02 -0700)
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>
src/client/Client.cc

index ae7ddf65db4852e1d39cc476147e8b82e820a869..eb7502c1530c962c526adc2cc41fe673476169c9 100644 (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)