From a201365aaa7f8851fd15d39722dc19b43641ec2b Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Wed, 13 Apr 2016 13:30:16 -0400 Subject: [PATCH] rgw: call rgw_log_usage_finalize() on reconfiguration 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 --- src/rgw/rgw_realm_reloader.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rgw/rgw_realm_reloader.cc b/src/rgw/rgw_realm_reloader.cc index a0c31fe728b8d..8f38e987ea7da 100644 --- a/src/rgw/rgw_realm_reloader.cc +++ b/src/rgw/rgw_realm_reloader.cc @@ -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; -- 2.39.5