]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
MOSDRepScrub,ReplicatedPG: Add scrub_to to MOSDRepScrub
authorSamuel Just <samuel.just@dreamhost.com>
Mon, 19 Dec 2011 22:50:17 +0000 (14:50 -0800)
committerSamuel Just <samuel.just@dreamhost.com>
Mon, 19 Dec 2011 22:57:11 +0000 (14:57 -0800)
commitcc22f1546de1d0edc8a477e50c9a58203be46ef6
tree71fb568ed21527417ae0cf26a69ef4efb656779b
parent2710bd8520ec360867640be6ec8f91edc3023774
MOSDRepScrub,ReplicatedPG: Add scrub_to to MOSDRepScrub

When scrub_from is set, also set scrub_to to the primary's
last_update_applied (which will also be the official last_update before
finalizing scrub began).  The replica instead of waiting for
last_update_applied to catch up to last_update will wait for
last_update_applied to catch up to active_rep_scrub->scrub_to.  This
avoids a race where the replica scrub is requeued before all of the
currently queued sub-ops have been processed.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
src/messages/MOSDRepScrub.h
src/osd/PG.cc
src/osd/ReplicatedPG.cc