summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_bucket.h
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@redhat.com>2019-08-17 02:23:55 +0200
committerYehuda Sadeh <yehuda@redhat.com>2020-01-28 19:20:36 +0100
commit9b06d22098e8664591ff356b4dd39e03904c25f9 (patch)
tree0addd723e60a01e6b6ef7c88d07f3695155fc67a /src/rgw/rgw_bucket.h
parentrgw: svc.bucket_sync: add new svc for dealing with bucket sync policy (diff)
downloadceph-9b06d22098e8664591ff356b4dd39e03904c25f9.tar.xz
ceph-9b06d22098e8664591ff356b4dd39e03904c25f9.zip
rgw: ctl.bucket: add bucket sync related methods
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Diffstat (limited to 'src/rgw/rgw_bucket.h')
-rw-r--r--src/rgw/rgw_bucket.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rgw/rgw_bucket.h b/src/rgw/rgw_bucket.h
index 9af062da160..d3f3946d86a 100644
--- a/src/rgw/rgw_bucket.h
+++ b/src/rgw/rgw_bucket.h
@@ -593,6 +593,7 @@ class RGWBucketCtl
struct Svc {
RGWSI_Zone *zone{nullptr};
RGWSI_Bucket *bucket{nullptr};
+ RGWSI_Bucket_Sync *bucket_sync{nullptr};
RGWSI_BucketIndex *bi{nullptr};
} svc;
@@ -611,6 +612,7 @@ class RGWBucketCtl
public:
RGWBucketCtl(RGWSI_Zone *zone_svc,
RGWSI_Bucket *bucket_svc,
+ RGWSI_Bucket_Sync *bucket_sync_svc,
RGWSI_BucketIndex *bi_svc);
void init(RGWUserCtl *user_ctl,
@@ -866,6 +868,12 @@ public:
int sync_user_stats(const rgw_user& user_id, const RGWBucketInfo& bucket_info,
RGWBucketEnt* pent = nullptr);
+ /* bucket sync */
+ int bucket_exports_data(const rgw_bucket& bucket,
+ optional_yield y);
+ int bucket_imports_data(const rgw_bucket& bucket,
+ optional_yield y);
+
private:
int convert_old_bucket_info(RGWSI_Bucket_X_Ctx& ctx,
const rgw_bucket& bucket,