Skip to content

Commit 3b96a09

Browse files
authored
Merge pull request ceph#61406 from clwluvw/checkpoint-dstbucket
rgw: set dest bucket id in bucket sync checkpoint Reviewed-by: Shilpa Jagannath <[email protected]>
2 parents 67c7e37 + f54176f commit 3b96a09

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/rgw/driver/rados/rgw_rest_log.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ void RGWOp_BILog_Status::execute(optional_yield y)
10611061

10621062
if (!pipe.dest.bucket) {
10631063
/* Uh oh, something went wrong */
1064-
ldpp_dout(this, 20) << "ERROR: RGWOp_BILog_Status::execute(optional_yield y): BUG: pipe.dest.bucket was not initialized" << pipe << dendl;
1064+
ldpp_dout(this, 0) << "ERROR: RGWOp_BILog_Status::execute(optional_yield y): BUG: pipe.dest.bucket was not initialized" << pipe << dendl;
10651065
op_ret = -EIO;
10661066
return;
10671067
}

src/rgw/radosgw-admin/sync_checkpoint.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ int rgw_bucket_sync_checkpoint(const DoutPrefixProvider* dpp,
228228
}
229229
auto& entry = sources.emplace_back();
230230
entry.pipe = pipe;
231+
entry.pipe.dest.bucket = info.bucket; // so it contains the bucket key (+bucket id)
231232

232233
// fetch remote markers
233234
boost::asio::spawn(ioctx, [&] (boost::asio::yield_context yield) {

0 commit comments

Comments
 (0)