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:
Sage Weil 2011-05-20 11:25:27 -07:00
parent 3811d8bf1f
commit 0f1be62914

View File

@ -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());