summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_bucket_sync.h
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@redhat.com>2019-10-30 22:51:12 +0100
committerYehuda Sadeh <yehuda@redhat.com>2020-01-28 19:20:37 +0100
commitc4deb504921324430c74daf6013aad44502a07da (patch)
treebd34e8f5f017e66e1c0c45bc51ff806a87e0d1be /src/rgw/rgw_bucket_sync.h
parentrgw: sync: bucket sync manager adjustments for new system (diff)
downloadceph-c4deb504921324430c74daf6013aad44502a07da.tar.xz
ceph-c4deb504921324430c74daf6013aad44502a07da.zip
rgw: data sync: more work towards new policy integration
RGWGetBucketPeersCR will be able to return correct buckets that need to sync, either by a target bucket, and/or a source zone and a source bucket (partially implemented). Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Diffstat (limited to 'src/rgw/rgw_bucket_sync.h')
-rw-r--r--src/rgw/rgw_bucket_sync.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/rgw/rgw_bucket_sync.h b/src/rgw/rgw_bucket_sync.h
index c62f4cf2edb..2368ffb097d 100644
--- a/src/rgw/rgw_bucket_sync.h
+++ b/src/rgw/rgw_bucket_sync.h
@@ -113,6 +113,20 @@ public:
struct pipe_set {
std::set<rgw_sync_bucket_pipe> pipes;
+ using iterator = std::set<rgw_sync_bucket_pipe>::iterator;
+
+ void insert(const rgw_sync_bucket_pipe& pipe) {
+ pipes.insert(pipe);
+ }
+
+ iterator begin() {
+ return pipes.begin();
+ }
+
+ iterator end() {
+ return pipes.end();
+ }
+
void dump(ceph::Formatter *f) const;
};