From 0f18d6e16e56375325191d0be1f57f353db872e0 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Fri, 14 Aug 2015 18:45:23 -0700 Subject: [PATCH] rgw: fix the simple coroutine Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_coroutine.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rgw/rgw_coroutine.cc b/src/rgw/rgw_coroutine.cc index afaa94877a9ee..f523c7e2d2897 100644 --- a/src/rgw/rgw_coroutine.cc +++ b/src/rgw/rgw_coroutine.cc @@ -314,9 +314,9 @@ int RGWSimpleCoroutine::operate() while (stack->collect(&ret)) { yield; } + return set_state(RGWCoroutine_Done, ret); } - - return set_state(RGWCoroutine_Done, ret); + return 0; } int RGWSimpleCoroutine::state_init() -- 2.39.5