]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: call rgw_log_usage_finalize() on reconfiguration 8585/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 13 Apr 2016 17:30:16 +0000 (13:30 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 13 Apr 2016 17:30:18 +0000 (13:30 -0400)
RGWRealmReloader was calling rgw_log_usage_init() with the new RGWRados
instance, but never cleaned up the previous one with
rgw_log_usage_finalize()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_realm_reloader.cc

index a0c31fe728b8d71b47269bd5788b92d67e078e6d..8f38e987ea7dad2511f4c1f2e78fbfac0287ee58 100644 (file)
@@ -80,6 +80,10 @@ void RGWRealmReloader::reload()
   frontends->pause();
 
   ldout(cct, 1) << "Frontends paused" << dendl;
+
+  // TODO: make RGWRados responsible for rgw_log_usage lifetime
+  rgw_log_usage_finalize();
+
   // destroy the existing store
   RGWStoreManager::close_storage(store);
   store = nullptr;