]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
PG,ReplicatedPG: clarify scrub state clearing
authorSamuel Just <sam.just@inktank.com>
Mon, 30 Jul 2012 20:43:51 +0000 (13:43 -0700)
committerSamuel Just <sam.just@inktank.com>
Mon, 30 Jul 2012 20:43:51 +0000 (13:43 -0700)
commitcda5e8e0c3ba71c66b5bf3f71d21d032de7c8d9f
tree2b15c86e2207f04083c293102ef247414efb06ff
parent6d464a21fcff23f3ca4388391bd128f713c37a44
PG,ReplicatedPG: clarify scrub state clearing

scrub_clear_state takes care of clearing the SCRUB and REPAIR
flags.  Thus, PG::scrub() needn't clear them again since
any change that would have caused that if block to occur
would have triggered ReplicatedPG::on_change(), which also
clears the scrub reservations.

Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/PG.cc
src/osd/ReplicatedPG.cc