From ca43639a9e78cc9c88e444ce3ffa543776aa40a2 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Thu, 20 Oct 2016 22:59:35 -0400 Subject: [PATCH] rgw: fix for passing temporary in InitBucketSyncStatus Fixes: http://tracker.ceph.com/issues/17661 Signed-off-by: Casey Bodley (cherry picked from commit 32906353c3136bc500ff06a3732a0946591118fa) --- src/rgw/rgw_data_sync.cc | 3 +-- src/rgw/rgw_data_sync.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index af97a95b956b9..bd31918c6b507 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -1710,8 +1710,7 @@ public: RGWCoroutine *RGWRemoteBucketLog::init_sync_status_cr() { - rgw_bucket_shard_sync_info sync_status; - return new RGWInitBucketShardSyncStatusCoroutine(&sync_env, bs, sync_status); + return new RGWInitBucketShardSyncStatusCoroutine(&sync_env, bs, init_status); } template diff --git a/src/rgw/rgw_data_sync.h b/src/rgw/rgw_data_sync.h index f3fc2f2a28367..bd93094bcec0d 100644 --- a/src/rgw/rgw_data_sync.h +++ b/src/rgw/rgw_data_sync.h @@ -403,6 +403,7 @@ class RGWRemoteBucketLog : public RGWCoroutinesManager { RGWHTTPManager *http_manager; RGWDataSyncEnv sync_env; + rgw_bucket_shard_sync_info init_status; RGWBucketSyncCR *sync_cr{nullptr}; -- 2.39.5