]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix for passing temporary in InitBucketSyncStatus 11594/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 21 Oct 2016 02:59:35 +0000 (22:59 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 21 Oct 2016 13:38:50 +0000 (09:38 -0400)
Fixes: http://tracker.ceph.com/issues/17661
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_data_sync.cc
src/rgw/rgw_data_sync.h

index b25be6103ead7f154ef665e30f1c04bb2dae754c..8286c57818560206377483d8235ccf019b93c460 100644 (file)
@@ -1815,8 +1815,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 <class T>
index 80dda7725e85543baf0b3938f5b7117cc2ddc13a..23318286cd05e95c422c987bca87232473c2a425 100644 (file)
@@ -451,6 +451,7 @@ class RGWRemoteBucketLog : public RGWCoroutinesManager {
   RGWHTTPManager *http_manager;
 
   RGWDataSyncEnv sync_env;
+  rgw_bucket_shard_sync_info init_status;
 
   RGWBucketSyncCR *sync_cr{nullptr};