]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw multisite: preserve zone's extra pool 10537/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Fri, 22 Jul 2016 08:57:45 +0000 (10:57 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Tue, 2 Aug 2016 08:30:39 +0000 (10:30 +0200)
commite825dd2f3fc9048995062bfe96e32e6df7ef37d9
tree2c4d9a20cd72b6468ef5bed1debf5456fd5c013f
parent894a5f8d878d4b267f80b90a4bffce157f2b4ba7
rgw multisite: preserve zone's extra pool

In current multisite scenarios,if a bucket is created in master, we end
up storing multipart metadata in `$source-zone.rgw.buckets.non-ec` pool
instead of the zone's own non-ec pool, so we end up additionally
creating this pool and storing multipart metadata entries in it. Also if
a bucket is created in a secondary zone, and we initiate a multipart
upload, before mdlog sync with master, we end up getting errors during
complete multipart requests as omap entries are partly stored in the
`$zone.rgw.buckets.non-ec` as well as `$source-zone.rgw.buckets.non-ec`
pools which leads to total number of parts mismatch.

Fixes: http://tracker.ceph.com/issues/16712
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit d4ecc956f603a567bd4043c2be39b3e7e3402c75)
src/rgw/rgw_bucket.cc