]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgwlib: ensure AppMain is destructed before CephContext
authorMatt Benjamin <mbenjamin@redhat.com>
Fri, 9 Sep 2022 15:57:44 +0000 (11:57 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 9 Sep 2022 15:57:44 +0000 (11:57 -0400)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_lib.h

index c104fad18af420e31f20de54269734810b0f0008..06a69025588e1d34c67d1aecd9e7b57eb94ec6c5 100644 (file)
@@ -20,9 +20,9 @@ namespace rgw {
   class RGWLibFrontend;
 
   class RGWLib : public DoutPrefixProvider {
+    boost::intrusive_ptr<CephContext> cct;
     AppMain main;
     RGWLibFrontend* fe;
-    boost::intrusive_ptr<CephContext> cct;
 
   public:
     RGWLib() : main(this), fe(nullptr)