diff options
author | Sage Weil <sage@inktank.com> | 2013-07-18 14:50:32 -0700 |
---|---|---|
committer | Greg Farnum <greg@inktank.com> | 2013-07-19 13:21:48 -0700 |
commit | 11c47cc4e3ddac54a5b2bb2623cf59b77917f555 (patch) | |
tree | a5d658a544a48a145b35933e4f0c8a0cdf175d73 | |
parent | 000d4d38a47871002a870bc815893833dc5a5773 (diff) | |
download | ceph-11c47cc4e3ddac54a5b2bb2623cf59b77917f555.tar.gz |
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>
-rw-r--r-- | src/client/Client.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/Client.cc b/src/client/Client.cc index ae7ddf65db4..eb7502c1530 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) |