]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: do not apply_transaction in finish_recovery
authorSage Weil <sage@newdream.net>
Tue, 10 Nov 2009 22:51:20 +0000 (14:51 -0800)
committerSage Weil <sage@newdream.net>
Tue, 10 Nov 2009 23:01:22 +0000 (15:01 -0800)
commit18480059dc43bd4be331e034fa904f02642469bb
tree48e4be8e9cd79c930700a0a8bcd589d6706a5530
parent41c176b15d4508abc4767788daee97ffcfc33793
osd: do not apply_transaction in finish_recovery

finish_recovery needs to set up a callback for when the current set of
changes commit to disk (to kickstart cleanup of strya replicas etc).  We
can't call apply_transaction this deep inside the call chain without
causing problems.  So, pass a list of completion contexts all the way down
so that we can set up the completion callback.
src/osd/OSD.cc
src/osd/OSD.h
src/osd/PG.cc
src/osd/PG.h
src/osd/ReplicatedPG.cc