]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: Fix PG::sched_scrub() logic so time_for_deep is consistent on re-entry
authorDavid Zafman <dzafman@redhat.com>
Thu, 6 Jun 2019 05:57:55 +0000 (22:57 -0700)
committerDavid Zafman <dzafman@redhat.com>
Thu, 27 Jun 2019 20:47:15 +0000 (13:47 -0700)
commit445b0221ecfab7e0972227642a600e5c42f895c5
treeacef275d28879c9ced6924ff6cb028600f7cbbc5
parent4a4c1fde89c821e3dad4d8c338eef7091d3594a3
osd: Fix PG::sched_scrub() logic so time_for_deep is consistent on re-entry

Perform calculations on the first entry to PG::sched_scrub() and save
scrubber.time_for_deep.  This makes it clear that upon re-entry we
are already committed to a deep scrub and/or auto repair.

Signed-off-by: David Zafman <dzafman@redhat.com>
src/osd/PG.cc
src/osd/PG.h