]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: abort early in realm reload if already reloading
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 8 Mar 2016 17:32:58 +0000 (09:32 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 8 Mar 2016 18:02:46 +0000 (10:02 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_realm_reloader.cc

index a565b09f7fba39ab1e70c019d24e3c12ad07ca54..a0c31fe728b8d71b47269bd5788b92d67e078e6d 100644 (file)
@@ -47,6 +47,11 @@ class RGWRealmReloader::C_Reload : public Context {
 void RGWRealmReloader::handle_notify(RGWRealmNotify type,
                                      bufferlist::iterator& p)
 {
+  if (!store) {
+    /* we're in the middle of reload */
+    return;
+  }
+
   CephContext *const cct = store->ctx();
 
   Mutex::Locker lock(mutex);