]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/multisite: error repo coroutines initialize rados pointer 54841/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 13 Dec 2023 20:32:37 +0000 (15:32 -0500)
committerCasey Bodley <cbodley@redhat.com>
Wed, 13 Dec 2023 20:32:37 +0000 (15:32 -0500)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/driver/rados/rgw_sync_error_repo.cc

index c180497bd73d69eacbdd842210773146eb3e07ce..b07037d655d38d2db56fb5680a8f3705718fcdd6 100644 (file)
@@ -127,7 +127,7 @@ class RGWErrorRepoWriteCR : public RGWSimpleCoroutine {
   RGWErrorRepoWriteCR(librados::Rados* rados, const rgw_raw_obj& raw_obj,
                       const std::string& key, ceph::real_time timestamp)
     : RGWSimpleCoroutine(static_cast<CephContext*>(rados->cct())),
-      raw_obj(raw_obj),
+      rados(rados), raw_obj(raw_obj),
       key(key), timestamp(timestamp)
   {}
 
@@ -172,7 +172,7 @@ class RGWErrorRepoRemoveCR : public RGWSimpleCoroutine {
   RGWErrorRepoRemoveCR(librados::Rados* rados, const rgw_raw_obj& raw_obj,
                        const std::string& key, ceph::real_time timestamp)
     : RGWSimpleCoroutine(static_cast<CephContext*>(rados->cct())),
-      raw_obj(raw_obj),
+      rados(rados), raw_obj(raw_obj),
       key(key), timestamp(timestamp)
   {}