mirror of
https://github.com/ceph/ceph
synced 2025-02-24 03:27:10 +00:00
osd: mark down old _to targets
If a peer remains a _to target but their address changes, we still want to mark down the old connection. Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
This commit is contained in:
parent
3811d8bf1f
commit
0f1be62914
@ -1470,7 +1470,7 @@ void OSD::update_heartbeat_peers()
|
||||
p != old_to.end();
|
||||
p++) {
|
||||
assert(old_inst.count(p->first));
|
||||
if (heartbeat_to.count(p->first))
|
||||
if (heartbeat_to.count(p->first) && heartbeat_inst[p->first] == old_inst[p->first])
|
||||
continue;
|
||||
assert(p->second <= osdmap->get_epoch());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user