]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: refactor realm/zongegroup/zone resolving
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 25 Jun 2021 21:53:08 +0000 (14:53 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 6 Aug 2021 18:58:35 +0000 (11:58 -0700)
commit40039e1f914eff1eaa0c0859c6da7292c3361c50
tree3f2c89fae5781bb13b83c70b827bd304d2639bc2
parentca83705eabb9e9b05f9f1cf3fa39dceda21fd4f8
rgw: refactor realm/zongegroup/zone resolving

Don't allow a zone to run under wrong zonegroup. Allow
starting with correct realm/period/zonegroup if only zone is provided,
and a realm exists for that zone.
Refactor svc.zone init and simplify logic complexity.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_zone.cc
src/rgw/rgw_zone.h
src/rgw/services/svc_zone.cc
src/rgw/services/svc_zone.h