From 924ace882e5b029dfd12bea3417fdf4a870f364e Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Mon, 23 Mar 2015 16:21:14 -0700 Subject: [PATCH] rgw: shut down timer before erroring out Fixes: #11145 Backport: hammer Clean up initialization timer, otherwise if we error out, we'll assert. Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_main.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rgw/rgw_main.cc b/src/rgw/rgw_main.cc index bac5b41d4c861..d15695885bb15 100644 --- a/src/rgw/rgw_main.cc +++ b/src/rgw/rgw_main.cc @@ -1066,6 +1066,11 @@ int main(int argc, const char **argv) int r = 0; RGWRados *store = RGWStoreManager::get_storage(g_ceph_context, true, true); if (!store) { + mutex.Lock(); + init_timer.cancel_all_events(); + init_timer.shutdown(); + mutex.Unlock(); + derr << "Couldn't init storage provider (RADOS)" << dendl; return EIO; } -- 2.39.5