From: Casey Bodley Date: Fri, 10 Nov 2017 19:27:59 +0000 (-0500) Subject: rgw: set num_shards on 'radosgw-admin data sync init' X-Git-Tag: v13.0.1~208^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F18883%2Fhead;p=ceph.git rgw: set num_shards on 'radosgw-admin data sync init' Fixes: http://tracker.ceph.com/issues/22083 Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index af6cfd2ff10a5..17a599871a206 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -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();