summaryrefslogtreecommitdiffstats
path: root/src/rgw/services/svc_zone.h
diff options
context:
space:
mode:
authorSoumya Koduri <skoduri@redhat.com>2023-07-05 14:15:39 +0200
committerSoumya Koduri <skoduri@redhat.com>2023-07-23 16:21:07 +0200
commit094460c26b8fdd9a72667800b54a0cfaa5409c88 (patch)
tree407768a28a86bfdf298d8ff39e62ba835505c654 /src/rgw/services/svc_zone.h
parentrgw/sync-policy: Do not allow empty group names (diff)
downloadceph-094460c26b8fdd9a72667800b54a0cfaa5409c88.tar.xz
ceph-094460c26b8fdd9a72667800b54a0cfaa5409c88.zip
rgw: Read `sync status` from only the zones allowed to sync from
Using multisite sync policy, zones within a zonegroup can be configured not to sync from certain zones. Filter such zones while reading sync status. Fixes: https://tracker.ceph.com/issues/62014 Signed-off-by: Soumya Koduri <skoduri@redhat.com>
Diffstat (limited to '')
-rw-r--r--src/rgw/services/svc_zone.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rgw/services/svc_zone.h b/src/rgw/services/svc_zone.h
index 00d4c0f4992..7b0a277c439 100644
--- a/src/rgw/services/svc_zone.h
+++ b/src/rgw/services/svc_zone.h
@@ -103,6 +103,7 @@ public:
bool zone_is_writeable();
bool zone_syncs_from(const RGWZone& target_zone, const RGWZone& source_zone) const;
+ bool zone_syncs_from(const RGWZone& source_zone) const;
bool get_redirect_zone_endpoint(std::string *endpoint);
bool sync_module_supports_writes() const { return writeable_zone; }
bool sync_module_exports_data() const { return exports_data; }