]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: shut down timer before erroring out 4152/head
authorYehuda Sadeh <yehuda@redhat.com>
Mon, 23 Mar 2015 23:21:14 +0000 (16:21 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Mon, 23 Mar 2015 23:21:14 +0000 (16:21 -0700)
Fixes: #11145
Backport: hammer

Clean up initialization timer, otherwise if we error out, we'll assert.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_main.cc

index bac5b41d4c8616a4c66b78a272be9b734a5299b6..d15695885bb15ab5a547b1e4286feb802739d54c 100644 (file)
@@ -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;
   }