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 <cbodley@redhat.com>
This commit is contained in:
Casey Bodley 2016-04-13 13:30:16 -04:00
parent 4943a55528
commit a201365aaa

View 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;