]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
context: don't complete C_Gather until finisher is set
authorSage Weil <sage@newdream.net>
Thu, 18 Mar 2010 04:46:00 +0000 (21:46 -0700)
committerSage Weil <sage@newdream.net>
Thu, 18 Mar 2010 18:37:45 +0000 (11:37 -0700)
commit83203b5ed4afd87f1046e0e5f00f95cac82c6af4
tree8b80bc2aa83ee471ad99146860849f2d3fa2dfb4
parent66a554d1e87b11a522dca9fc2155c4cd655b5113
context: don't complete C_Gather until finisher is set

We often create a C_Gather, add a bunch of subs, and set a
finisher at the end.  Occasionally we create a sub and it gets
finished immediately, in which case we don't want the gather to
get finished and deleted already.  So don't 'complete' the gather
until it's by activated by setting the finisher.
src/include/Context.h