Merge pull request #16519 from liewegas/wip-20754

osd: populate last_epoch_split during build_initial_pg_history

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
This commit is contained in:
Kefu Chai 2017-07-26 17:17:24 +08:00 committed by GitHub
commit 483efafb56

View File

@ -4402,6 +4402,11 @@ void OSD::build_initial_pg_history(
if (acting_primary != new_acting_primary) {
h->same_primary_since = e;
}
if (pgid.pgid.is_split(lastmap->get_pg_num(pgid.pgid.pool()),
osdmap->get_pg_num(pgid.pgid.pool()),
nullptr)) {
h->last_epoch_split = e;
}
lastmap = osdmap;
}
dout(20) << __func__ << " " << debug.str() << dendl;