diff options
author | Shilpa Manjarabad Jagannath <smanjara@smanjara.remote.csb> | 2020-07-06 11:47:15 +0200 |
---|---|---|
committer | Casey Bodley <cbodley@redhat.com> | 2022-05-27 21:47:31 +0200 |
commit | 680bfdcfeb69e795656576315c4cb44e4d1e8e79 (patch) | |
tree | 62e04a4206bab8a209579cc2c137f3c3ddb996f0 /src/rgw/rgw_bucket.cc | |
parent | rgw: use rgw::BucketReshardState for reshard state change (diff) | |
download | ceph-680bfdcfeb69e795656576315c4cb44e4d1e8e79.tar.xz ceph-680bfdcfeb69e795656576315c4cb44e4d1e8e79.zip |
rgw: target_layout to be optional
Signed-off-by: Shilpa Manjarabad Jagannath <smanjara@redhat.com>
Diffstat (limited to 'src/rgw/rgw_bucket.cc')
-rw-r--r-- | src/rgw/rgw_bucket.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rgw/rgw_bucket.cc b/src/rgw/rgw_bucket.cc index 52e5e7ada1e..2dfcb371db7 100644 --- a/src/rgw/rgw_bucket.cc +++ b/src/rgw/rgw_bucket.cc @@ -1325,7 +1325,8 @@ static int purge_bucket_instance(rgw::sal::Store* store, const RGWBucketInfo& bu int max_shards = index.layout.normal.num_shards; for (int i = 0; i < max_shards; i++) { RGWRados::BucketShard bs(static_cast<rgw::sal::RadosStore*>(store)->getRados()); - int ret = bs.init(bucket_info.bucket, i, bucket_info.layout.current_index, nullptr, dpp); + int ret = bs.init(bucket_info.bucket, i, bucket_info.layout.current_index, + std::nullopt, nullptr, dpp); if (ret < 0) { cerr << "ERROR: bs.init(bucket=" << bucket_info.bucket << ", shard=" << i << "): " << cpp_strerror(-ret) << std::endl; |