]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: update info.stats.* mappings on split 8833/head
authorSage Weil <sage@redhat.com>
Fri, 29 Apr 2016 19:24:09 +0000 (15:24 -0400)
committerSage Weil <sage@redhat.com>
Fri, 29 Apr 2016 19:24:09 +0000 (15:24 -0400)
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>
src/osd/PG.cc

index b6845222e782dbed4704603639e7db550f37777e..4000a6e63c1cff06685bf922455eb6d499bb87e4 100644 (file)
@@ -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;