]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PG: base past_interval_bounds on pool creation epoch 14989/head
authorSage Weil <sage@redhat.com>
Mon, 8 May 2017 02:47:47 +0000 (22:47 -0400)
committerSage Weil <sage@redhat.com>
Mon, 8 May 2017 02:47:47 +0000 (22:47 -0400)
commitbd912d2c57adfd3caf211205e4443187cd81e879
treed776459eacc039f468547423d23091a04aaa5e86
parentbdefd6b7c2c02a0b0c78acea1ee647f374f94e9d
osd/PG: base past_interval_bounds on pool creation epoch

The base case for the past_intervals bounds is the creation epoch for the
pool, not the PG.  Otherwise, a pool that is created, does not go active,
and then splits will not include the pre-split history.  For example,

- pg A is created in epoch X
- pg A does not go active
- pg A splits into pg B in epoch Y

but then,
- pg B has past intervals from [X,Y)
- pg B epoch_created is Y ***
- pg B required past intervals is [Y,Y)
- fails check_past_interval_bounds check

Fixes: http://tracker.ceph.com/issues/19877
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PG.h