]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: clear stack ops when unwinding last op
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 8 Jan 2016 19:57:05 +0000 (11:57 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 12 Feb 2016 00:13:53 +0000 (16:13 -0800)
So that we don't drop the last one's reference twice

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_coroutine.cc

index 62b8c9f4f6c902a0c3b488aa416a66605f298378..4959a893eeafed5a9326e31a87ee8b9e0a47ce80 100644 (file)
@@ -254,6 +254,7 @@ int RGWCoroutinesStack::unwind(int retcode)
 
   if (pos == ops.begin()) {
     spawned.inherit(src_spawned);
+    ops.clear();
     pos = ops.end();
     return retcode;
   }