]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: move around sync_env.init()
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 5 May 2016 01:08:38 +0000 (18:08 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Mon, 9 May 2016 23:02:48 +0000 (16:02 -0700)
call sync_env.init() even if we're initalized in RGWRemoteDataLog::init()

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 3d8442effc1c175e0b7c5064ed41bc642f6cdcb0)

src/rgw/rgw_data_sync.cc

index 0d76ad1e2501eaa0acd86960a4cae2676c976475..c865d49debae967226d9704953c8d9d6a06f43bc 100644 (file)
@@ -483,12 +483,12 @@ int RGWRemoteDataLog::read_source_log_shards_next(map<int, string> 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;