Merge PR #28662 into master

* refs/pull/28662/head:
	osd: share curmap in handle_osd_ping

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Neha Ojha <nojha@redhat.com>
This commit is contained in:
Sage Weil 2019-06-24 13:13:48 -05:00
commit 537dad90a9

View File

@ -4575,7 +4575,7 @@ void OSD::handle_osd_ping(MOSDPing *m)
if (is_active()) {
ConnectionRef con = service.get_con_osd_cluster(from, curmap->get_epoch());
if (con) {
service.maybe_share_map(con.get(), get_osdmap(), m->map_epoch);
service.maybe_share_map(con.get(), curmap, m->map_epoch);
}
}
} else if (!curmap->exists(from) ||
@ -4669,7 +4669,7 @@ void OSD::handle_osd_ping(MOSDPing *m)
if (is_active()) {
ConnectionRef con = service.get_con_osd_cluster(from, curmap->get_epoch());
if (con) {
service.maybe_share_map(con.get(), get_osdmap(), m->map_epoch);
service.maybe_share_map(con.get(), curmap, m->map_epoch);
}
}
}