]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: data sync: set num_shards when building full maps
authorAbhishek Lekshmanan <abhishek@suse.com>
Thu, 9 Nov 2017 14:50:56 +0000 (15:50 +0100)
committerNathan Cutler <ncutler@suse.com>
Tue, 21 Nov 2017 09:03:19 +0000 (10:03 +0100)
commit442120898b8abf22fcd66e06eb8607481653c890
treeff2344303bb08687d2c444c70e5422c5fd645bad
parent5e519aebe718bd16d52e974beba8e3bf97b04ae8
rgw: data sync: set num_shards when building full maps

When radosgw-admin data sync init is called on a cluster, the next run
of rgw crashes as when it processes ListBucketIndexesCR, num_shards
isn't set which is later referenced in ListBucketIndexesCR. Setting the
n sync_info.num_shards correctly to handle this case

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