mirror of
https://github.com/ceph/ceph
synced 2024-12-17 17:05:42 +00:00
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:
commit
483efafb56
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user