These are updated in the init and start_peering_interval paths, but not
on split.
Fixes: http://tracker.ceph.com/issues/15523
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
8b42294d98dd70715184991da5ba495fbe93d009)
if (get_primary() != child->get_primary())
child->info.history.same_primary_since = get_osdmap()->get_epoch();
+ child->info.stats.up = up;
+ child->info.stats.up_primary = up_primary;
+ child->info.stats.acting = acting;
+ child->info.stats.acting_primary = primary;
+ child->info.stats.mapping_epoch = get_osdmap()->get_epoch();
+
// History
child->past_intervals = past_intervals;