]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: data sync: set num_shards when building full maps 19783/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Thu, 9 Nov 2017 14:50:56 +0000 (15:50 +0100)
committerOrit Wasserman <owasserm@redhat.com>
Thu, 4 Jan 2018 20:00:45 +0000 (22:00 +0200)
commit8d6b89cc0acd17fe37b1f44b2ca95dfc554ff8bc
tree4c3e589f7879d86c17073e4a8d60180b16184d06
parentc0b59f2052be58e2bc7cffd5117ec7266c5a4f96
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)

Conflicts:
src/rgw/rgw_data_sync.cc
src/rgw/rgw_data_sync.cc