]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: set num_shards on 'radosgw-admin data sync init'
authorCasey Bodley <cbodley@redhat.com>
Fri, 10 Nov 2017 19:27:59 +0000 (14:27 -0500)
committerOrit Wasserman <owasserm@redhat.com>
Thu, 4 Jan 2018 19:27:30 +0000 (21:27 +0200)
Fixes: http://tracker.ceph.com/issues/22083
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 90e860c25b87670810426e94b04b515af1e4f154)

src/rgw/rgw_data_sync.cc

index 1853eb337589a96644cc92bc628f0b72f90fcaa2..b16a45ed75948b156ca1189875e21a04c917a73c 100644 (file)
@@ -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();