Skip to content

Commit

Permalink
Merge pull request #9001: hammer: osd: acting_primary not updated on …
Browse files Browse the repository at this point in the history
…split

Reviewed-by: Nathan Cutler <ncutler@suse.com>
  • Loading branch information
smithfarm committed Jun 1, 2016
2 parents b4c1007 + cbd5aaf commit 8b6606d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/osd/PG.cc
Expand Up @@ -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;

Expand Down

0 comments on commit 8b6606d

Please sign in to comment.