PG.info.stats is sent to mgr periodically for PG stats reporting,
also, it is sent to peer OSD in MOSDPGLog message when PG performs
peering. we need to keep it updated.
Signed-off-by: Kefu Chai <kchai@redhat.com>
update_primary_state(new_up, new_up_primary,
new_acting, new_acting_primary);
}
+ info.stats.up = up;
+ info.stats.up_primary = up_primary.osd;
+ info.stats.acting = acting;
+ info.stats.acting_primary = primary.osd;
+ info.stats.mapping_epoch = info.history.same_interval_since;
return seastar::now();
});
}