summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCasey Bodley <cbodley@redhat.com>2023-12-13 21:32:37 +0100
committerCasey Bodley <cbodley@redhat.com>2023-12-13 21:32:37 +0100
commitb4592f3588d2cff5766949508d181ef603128ff4 (patch)
tree8c84ac4c0fc4a5ff9104f39aa0fde7dad5f24ebf
parentrgw/multisite: error repo coroutines store raw_obj by value (diff)
downloadceph-b4592f3588d2cff5766949508d181ef603128ff4.tar.xz
ceph-b4592f3588d2cff5766949508d181ef603128ff4.zip
rgw/multisite: error repo coroutines initialize rados pointer
Signed-off-by: Casey Bodley <cbodley@redhat.com>
-rw-r--r--src/rgw/driver/rados/rgw_sync_error_repo.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rgw/driver/rados/rgw_sync_error_repo.cc b/src/rgw/driver/rados/rgw_sync_error_repo.cc
index c180497bd73..b07037d655d 100644
--- a/src/rgw/driver/rados/rgw_sync_error_repo.cc
+++ b/src/rgw/driver/rados/rgw_sync_error_repo.cc
@@ -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)
{}