]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Continuation: don't delete self while there are in-processing stages
authorYan, Zheng <zyan@redhat.com>
Wed, 10 Jun 2020 16:15:28 +0000 (00:15 +0800)
committerYan, Zheng <zyan@redhat.com>
Mon, 16 Nov 2020 01:02:17 +0000 (09:02 +0800)
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/common/Continuation.h

index 966b63d07acba9c0dadecf07648696002033269b..1c61e7c4eba3c8be9e5d62748d00c5b64279b075 100644 (file)
@@ -144,8 +144,7 @@ private:
     assert (!done ||
             stages_in_flight.size() == stages_processing.size());
 
-    if (done ||
-        (reported_done && stages_processing.empty())) {
+    if ((done || reported_done) && stages_processing.empty()) {
       _done();
       delete this;
     }