From: Yehuda Sadeh Date: Fri, 8 Jan 2016 19:57:05 +0000 (-0800) Subject: rgw: clear stack ops when unwinding last op X-Git-Tag: v10.1.0~354^2~66 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9e2569e2055eef55d4d11fded0966d6d0b561ae1;p=ceph.git rgw: clear stack ops when unwinding last op So that we don't drop the last one's reference twice Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_coroutine.cc b/src/rgw/rgw_coroutine.cc index 62b8c9f4f6c..4959a893eea 100644 --- a/src/rgw/rgw_coroutine.cc +++ b/src/rgw/rgw_coroutine.cc @@ -254,6 +254,7 @@ int RGWCoroutinesStack::unwind(int retcode) if (pos == ops.begin()) { spawned.inherit(src_spawned); + ops.clear(); pos = ops.end(); return retcode; }