]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
PG: switch the start_recovery_ops interface to specify work to do as a param
authorGreg Farnum <greg@inktank.com>
Tue, 22 Oct 2013 00:36:04 +0000 (17:36 -0700)
committerSamuel Just <sam.just@inktank.com>
Sun, 27 Oct 2013 17:40:32 +0000 (10:40 -0700)
commit058c74ab23992f21024e19f2a4b62571bbb9ac22
treef6bda0b372976fca5eea30a77e2445f3729b4639
parent87daef76cdb0707d4570c2338a86a6a121276c04
PG: switch the start_recovery_ops interface to specify work to do as a param

We previously inferred whether there was useful work to be done
by looking at the number of ops started, but with the upcoming
introduction of the rw_manager read locking on backfill, we could
start no ops while still having work to do. Switch around the
interfaces to specify these as separate pieces of information.

Signed-off-by: Greg Farnum <greg@inktank.com>
src/osd/OSD.cc
src/osd/PG.h
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h