From c0b59f2052be58e2bc7cffd5117ec7266c5a4f96 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Fri, 10 Nov 2017 14:27:59 -0500 Subject: [PATCH] rgw: set num_shards on 'radosgw-admin data sync init' Fixes: http://tracker.ceph.com/issues/22083 Signed-off-by: Casey Bodley (cherry picked from commit 90e860c25b87670810426e94b04b515af1e4f154) --- src/rgw/rgw_data_sync.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index 1853eb337589a..b16a45ed75948 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -625,6 +625,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(); -- 2.39.5