diff options
author | Soumya Koduri <skoduri@redhat.com> | 2023-04-19 20:03:28 +0200 |
---|---|---|
committer | Soumya Koduri <skoduri@redhat.com> | 2023-05-01 16:00:58 +0200 |
commit | cec19b09efc5a56a5f5600000675b951428b98ce (patch) | |
tree | 13aca391af0b1cf674da6894634df1580fdfe308 /src/rgw/rgw_rest_conn.h | |
parent | rgw/cloudtier: Fix bug with decoding tier_targets (diff) | |
download | ceph-cec19b09efc5a56a5f5600000675b951428b98ce.tar.xz ceph-cec19b09efc5a56a5f5600000675b951428b98ce.zip |
rgw/cloudtransition: Allow multisite zones to sync cloudtiered objects
In a multisite configuration, zones should be able to fetch & sync
cloud-transitioned objects as well. To allow this, a new header
'x-rgwx-sync-cloudtiered' is added to be used by sync client to GET
such objects.
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
Diffstat (limited to 'src/rgw/rgw_rest_conn.h')
-rw-r--r-- | src/rgw/rgw_rest_conn.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rgw/rgw_rest_conn.h b/src/rgw/rgw_rest_conn.h index c916b97378d..bb0d5a8bbf8 100644 --- a/src/rgw/rgw_rest_conn.h +++ b/src/rgw/rgw_rest_conn.h @@ -154,6 +154,7 @@ public: bool get_op{false}; bool rgwx_stat{false}; bool sync_manifest{false}; + bool sync_cloudtiered{false}; bool skip_decrypt{true}; RGWHTTPStreamRWRequest::ReceiveCB *cb{nullptr}; @@ -169,7 +170,8 @@ public: const ceph::real_time *mod_ptr, const ceph::real_time *unmod_ptr, uint32_t mod_zone_id, uint64_t mod_pg_ver, bool prepend_metadata, bool get_op, bool rgwx_stat, bool sync_manifest, - bool skip_decrypt, bool send, RGWHTTPStreamRWRequest::ReceiveCB *cb, RGWRESTStreamRWRequest **req); + bool skip_decrypt, bool sync_cloudtiered, + bool send, RGWHTTPStreamRWRequest::ReceiveCB *cb, RGWRESTStreamRWRequest **req); int complete_request(RGWRESTStreamRWRequest *req, std::string *etag, ceph::real_time *mtime, |