From da7940a18ade4200c18a350c962f1ca14cb30e54 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Fri, 14 Aug 2015 17:34:47 -0700 Subject: [PATCH] rgw: fix async sleep and wakeup logic lot's of cleanups and fixes Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_coroutine.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rgw/rgw_coroutine.cc b/src/rgw/rgw_coroutine.cc index 1c3e98d20fcb6..447e17e60c832 100644 --- a/src/rgw/rgw_coroutine.cc +++ b/src/rgw/rgw_coroutine.cc @@ -124,6 +124,7 @@ int RGWCoroutinesStack::unwind(int retcode) return 0; } + bool RGWCoroutinesStack::collect(RGWCoroutine *op, int *ret) /* returns true if needs to be called again */ { rgw_spawned_stacks *s = (op ? &op->spawned : &spawned); @@ -143,6 +144,7 @@ bool RGWCoroutinesStack::collect(RGWCoroutine *op, int *ret) /* returns true if stack->put(); } + s->entries.swap(new_list); return (!new_list.empty()); } -- 2.39.5