Skip to content

Commit

Permalink
Merge pull request #11594 from cbodley/wip-rgw-init-bucket-sync
Browse files Browse the repository at this point in the history
rgw: fix for passing temporary in InitBucketSyncStatus

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
  • Loading branch information
yehudasa committed Oct 25, 2016
2 parents 574f4fd + 3290635 commit 6b966be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/rgw/rgw_data_sync.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1815,8 +1815,7 @@ class RGWInitBucketShardSyncStatusCoroutine : public RGWCoroutine {

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>
Expand Down
1 change: 1 addition & 0 deletions src/rgw/rgw_data_sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down

0 comments on commit 6b966be

Please sign in to comment.