]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: using the same bucket num_shards as master zg when create bucket in secondary zg 14388/head
authorlu.shasha <lu.shasha@eisoo.com>
Fri, 7 Apr 2017 07:34:27 +0000 (15:34 +0800)
committerlu.shasha <lu.shasha@eisoo.com>
Mon, 24 Apr 2017 01:05:23 +0000 (09:05 +0800)
commita34c4b8fb13dd5590eb3c6ecb5e55207ed8e3ee8
tree5f2ad90093416fdf6c9fbf11b9fde2775f25dd9d
parent2950ad91d25d0d6e2e3fb6842d5bbc36353ba2a5
rgw: using the same bucket num_shards as master zg when create bucket in secondary zg

create bucket in secondary zonegroup will forward to master. The master may have different num_shards option.
So when create bucket in local, should use master's num_shards instead of local num_shards option.

Fixes: http://tracker.ceph.com/issues/19745
Signed-off-by: Shasha Lu <lu.shasha@eisoo.com>
src/rgw/rgw_op.cc
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h