]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tests: osd-scrub-repair.sh disable scrub backoff in test 13334/head
authorKefu Chai <kchai@redhat.com>
Thu, 9 Feb 2017 16:54:54 +0000 (00:54 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 9 Feb 2017 19:25:12 +0000 (03:25 +0800)
commit6016dd9acbd9dab928437b1f1d76522b22d5c241
tree408ae8bb4f393f2c60476b1e5170a656bd4de5b5
parent4d505acdf342810e1cc943383b5c8e86e37cbe03
tests: osd-scrub-repair.sh disable scrub backoff in test

there is good chance that the newly scheduled scrub fail to pass the
flip-coin check: the probability of scheduling a new scrub 1/3 every
time we flip the coin. so, instead hardwiring the probability to 1/3,
a new option named "osd_scrub_backoff_ratio" is introduced. so we can
override it when performing test.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/config_opts.h
src/osd/OSD.cc
src/test/osd/osd-scrub-repair.sh