]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: call on_new_interval on newly split child PG 6849/head
authorSage Weil <sage@redhat.com>
Wed, 2 Dec 2015 19:50:28 +0000 (14:50 -0500)
committerAbhishek Varshney <abhishek.varshney@flipkart.com>
Tue, 8 Dec 2015 08:17:01 +0000 (13:47 +0530)
commit7ac5b151224f618e2f81387f74b1b7c3159c2b43
treede433fa7f4cf2566a50b02e485f761799c450526
parent476af491ba03843e953dd257ad972f09c64dd816
osd: call on_new_interval on newly split child PG

We must call on_new_interval() on any interval change *and* on the
creation of the PG.  Currently we call it from PG::init() and
PG::start_peering_interval().  However, PG::split_into() did not
do so for the child PG, which meant that the new child feature
bits were not properly initialized and the bitwise/nibblewise
debug bit was not correctly set.  That, in turn, could lead to
various misbehaviors, the most obvious of which is scrub errors
due to the sort order mismatch.

Fixes: #13962
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit fb120d7b2da5715e7f7d1baa65bfa70d2e5d807a)
src/osd/PG.cc