]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: set num_shards on 'radosgw-admin data sync init' 18883/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 10 Nov 2017 19:27:59 +0000 (14:27 -0500)
committerCasey Bodley <cbodley@redhat.com>
Wed, 15 Nov 2017 19:02:13 +0000 (14:02 -0500)
Fixes: http://tracker.ceph.com/issues/22083
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_data_sync.cc

index af6cfd2ff10a5b88d43acbc8acbafb6bae0bb249..17a599871a206f0a57590e847b815446e7bbd86f 100644 (file)
@@ -674,6 +674,8 @@ int RGWRemoteDataLog::read_sync_status(rgw_data_sync_status *sync_status)
 int RGWRemoteDataLog::init_sync_status(int num_shards)
 {
   rgw_data_sync_status sync_status;
+  sync_status.sync_info.num_shards = num_shards;
+
   RGWCoroutinesManager crs(store->ctx(), store->get_cr_registry());
   RGWHTTPManager http_manager(store->ctx(), crs.get_completion_mgr());
   int ret = http_manager.set_threaded();