From: Yehuda Sadeh Date: Thu, 5 May 2016 01:08:38 +0000 (-0700) Subject: rgw: move around sync_env.init() X-Git-Tag: v11.0.0~611^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3d8442effc1c175e0b7c5064ed41bc642f6cdcb0;p=ceph.git rgw: move around sync_env.init() call sync_env.init() even if we're initalized in RGWRemoteDataLog::init() Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index c1af6c896483..ef4e43412cb1 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -478,12 +478,12 @@ int RGWRemoteDataLog::read_source_log_shards_next(map shard_markers int RGWRemoteDataLog::init(const string& _source_zone, RGWRESTConn *_conn, RGWSyncErrorLogger *_error_logger) { + sync_env.init(store->ctx(), store, _conn, async_rados, &http_manager, _error_logger, _source_zone); + if (initialized) { return 0; } - sync_env.init(store->ctx(), store, _conn, async_rados, &http_manager, _error_logger, _source_zone); - int ret = http_manager.set_threaded(); if (ret < 0) { ldout(store->ctx(), 0) << "failed in http_manager.set_threaded() ret=" << ret << dendl;