From: Yehuda Sadeh Date: Mon, 23 Mar 2015 23:21:14 +0000 (-0700) Subject: rgw: shut down timer before erroring out X-Git-Tag: v0.94~20^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F4152%2Fhead;p=ceph.git 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 --- diff --git a/src/rgw/rgw_main.cc b/src/rgw/rgw_main.cc index bac5b41d4c86..d15695885bb1 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; }