Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
rgw/sfs: don't care about location constraints
Browse files Browse the repository at this point in the history
We don't deal with zones, all zones are welcome zones. So, when someone
wants to store something on a given location, welcome them by allowing
all zones.

Fixes: aquarist-labs/s3gw#848

Signed-off-by: Joao Eduardo Luis <[email protected]>
  • Loading branch information
jecluis committed Nov 29, 2023
1 parent d08bc76 commit 487ec3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rgw/driver/sfs/zone.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ bool SFSZone::get_redirect_endpoint(std::string* /*endpoint*/) {
}

bool SFSZone::has_zonegroup_api(const std::string& /*api*/) const {
return false;
return true;
}

const std::string& SFSZone::get_current_period_id() {
Expand Down
3 changes: 2 additions & 1 deletion src/rgw/driver/sfs/zone.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ class SFSZoneGroup : public StoreZoneGroup {
return !!group->placement_targets.count(target);
}
virtual bool is_master_zonegroup() const override {
return group->is_master_zonegroup();
// we are a master zonegroup, because we are just the one running.
return true;
}
virtual const std::string& get_api_name() const override {
return group->api_name;
Expand Down

0 comments on commit 487ec3f

Please sign in to comment.