]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix handling of bucket layout in metadata sync
authorCasey Bodley <cbodley@redhat.com>
Fri, 14 May 2021 16:30:21 +0000 (12:30 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Tue, 1 Feb 2022 17:55:33 +0000 (12:55 -0500)
commitbf020a76282e853d5f6e2c59db520dae1fb562ef
tree38620b4ce3d54fe0373923b39f2d835659c1a5c6
parent36bdf5c8ee2336dc399f24fe2edbfd1e968b1fdd
rgw: fix handling of bucket layout in metadata sync

clear the bucket layout we get from the metadata master, and overwrite it
with our zone's defaults

without clearing the layout, init_default_bucket_layout() was adding another
log layout in addition to the one from the master. this caused the bilog
list API to provide a 'next_log' when only gen=0 exists

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_bucket.cc