summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-07-18 14:50:32 -0700
committerSage Weil <sage@inktank.com>2013-07-18 15:02:09 -0700
commit8ff7d536a24dd00c6f5d8135bf8cfc4a8ff88a17 (patch)
tree61ac91a7bd99fa491e78cc13225760094fffe70e
parente0067a85d17a7784dcfdf1039c318db0a22bed0d (diff)
downloadceph-8ff7d536a24dd00c6f5d8135bf8cfc4a8ff88a17.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.cc2
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)