]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: make sure _finish_recovery only completes when it's supposed to
authorSage Weil <sage@newdream.net>
Fri, 8 May 2009 03:47:31 +0000 (20:47 -0700)
committerSage Weil <sage@newdream.net>
Fri, 8 May 2009 03:47:31 +0000 (20:47 -0700)
commitc9ba42bd595347052d5b74b31bb83a3b2abc79d0
treed8c37bfd9be168f4df74425a8e018101d61b8856
parent26681c572ac68a3ca2f7a61ab0137402f3f77d3b
osd: make sure _finish_recovery only completes when it's supposed to

Because the finish_recovery does a sync, the final cleanup is
deferred, and we have to make sure we are still done (and we
haven't, say, repeered or something).

In this case, we thus make sure we don't clear out pg
recovery_ops when we actually have ops in progress.
src/osd/PG.cc
src/osd/PG.h
src/osd/ReplicatedPG.cc