]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw/main: cause ratelimiter to destruct in AppMain::shutdown()
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 8 Sep 2022 16:46:55 +0000 (12:46 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 9 Sep 2022 15:19:23 +0000 (11:19 -0400)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_appmain.cc

index 95d3ee18526cf411a532ca782a777fb640aba622..6719de12ddb1581ec651470a6a35b341b245d6e7 100644 (file)
@@ -603,6 +603,6 @@ void rgw::AppMain::shutdown(std::function<void(void)> finalize_async_signals)
 #ifdef WITH_RADOSGW_KAFKA_ENDPOINT
   rgw::kafka::shutdown();
 #endif
-
   rgw_perf_stop(g_ceph_context);
+  ratelimiter.reset(); // deletes--ensure this happens before we destruct
 } /* AppMain::shutdown */