diff options
author | Samuel Just <sam.just@inktank.com> | 2013-07-19 17:34:53 -0700 |
---|---|---|
committer | Samuel Just <sam.just@inktank.com> | 2013-07-19 17:34:53 -0700 |
commit | 221044fc096c69e1370fb865867ef693d494544c (patch) | |
tree | d2a15521306c081fd7ea110d882866929051cbb2 | |
parent | 619d0701a292eaecbdfdfcafa146991e61ef27dc (diff) | |
download | ceph-221044fc096c69e1370fb865867ef693d494544c.tar.gz |
Finisher: use complete() not finish() and delete
Signed-off-by: Samuel Just <sam.just@inktank.com>
-rw-r--r-- | src/common/Finisher.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/common/Finisher.cc b/src/common/Finisher.cc index 72bfb6f9aa7..a1462a184d9 100644 --- a/src/common/Finisher.cc +++ b/src/common/Finisher.cc @@ -53,13 +53,11 @@ void *Finisher::finisher_thread_entry() p != ls.end(); ++p) { if (*p) { - (*p)->finish(0); - delete *p; + (*p)->complete(0); } else { assert(!ls_rval.empty()); Context *c = ls_rval.front().first; - c->finish(ls_rval.front().second); - delete c; + c->complete(ls_rval.front().second); ls_rval.pop_front(); } if (logger) |