Skip to content

Commit

Permalink
osd/PG: update info.stats.* mappings on split
Browse files Browse the repository at this point in the history
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 8b42294)
  • Loading branch information
liewegas authored and Abhishek Varshney committed May 6, 2016
1 parent 791eba8 commit 3674341
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/osd/PG.cc
Expand Up @@ -2337,6 +2337,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;

Expand Down

0 comments on commit 3674341

Please sign in to comment.