From cbd5aafe93a5c85392a460a183862f62af2836b8 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 29 Apr 2016 15:24:09 -0400 Subject: [PATCH] osd/PG: update info.stats.* mappings on split 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 (cherry picked from commit 8b42294d98dd70715184991da5ba495fbe93d009) --- src/osd/PG.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 7917638b1e72..dd3628c93139 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -2214,6 +2214,12 @@ void PG::split_into(pg_t child_pgid, PG *child, unsigned split_bits) 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; -- 2.47.3