From 706a194d409c7d08425aa0ab98e4b5a3ac7c5250 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Mon, 23 Nov 2015 12:17:53 -0800 Subject: [PATCH] rgw: remove run context when finished running Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_coroutine.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rgw/rgw_coroutine.cc b/src/rgw/rgw_coroutine.cc index 938984b93649a..2db4a04e2038d 100644 --- a/src/rgw/rgw_coroutine.cc +++ b/src/rgw/rgw_coroutine.cc @@ -483,6 +483,10 @@ int RGWCoroutinesManager::run(list& stacks) } } + lock.get_write(); + run_contexts.erase(run_context); + lock.unlock(); + return 0; } -- 2.39.5