]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: period update: check for dangling master zone references
authorAbhishek Lekshmanan <abhishek@suse.com>
Mon, 19 Nov 2018 16:47:51 +0000 (17:47 +0100)
committerAbhishek Lekshmanan <abhishek@suse.com>
Mon, 19 Nov 2018 17:38:53 +0000 (18:38 +0100)
commit3bea89096857230ecd6137ec6fe551c4ae20ae37
treeb3064f96b976538aeeccc08dcad41313ea11fd0e
parent58eb3545e4db2c9208fbc09789b89dd9d2ff7a71
rgw: period update: check for dangling master zone references

If we are deleting a master zone of a zonegroup fail on period update, if this
was intentional, either creating / modifying a zone as master or in case of
deletions, deletion of the zonegroup itself will correct the period update to
work correctly. Without the check, while period commit will be successful a
subsequent RGWRados::init_complete() will fail.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_zone.cc