mirror of
https://github.com/ceph/ceph
synced 2024-12-17 17:05:42 +00:00
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>
This commit is contained in:
parent
000d4d38a4
commit
11c47cc4e3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user