std::optional<rgw_user> _user;
std::optional<rgw_sync_pipe_acl_translation> _acl_translation;
std::optional<string> _storage_class;
- rgw_sync_pipe_params::Mode _mode;
+ rgw_sync_pipe_params::Mode _mode{rgw_sync_pipe_params::Mode::MODE_SYSTEM};
int i = 0;
for (auto& iter : iters) {
result.version_id = instance;
}
- BucketShard *bs;
+ BucketShard *bs = nullptr;
int r = target->get_bucket_shard(&bs, dpp);
if (r < 0) {
ldpp_dout(dpp, 5) << "failed to get BucketShard object: r=" << r << dendl;
int RGWRados::Bucket::UpdateIndex::guard_reshard(const DoutPrefixProvider *dpp, BucketShard **pbs, std::function<int(BucketShard *)> call)
{
RGWRados *store = target->get_store();
- BucketShard *bs;
+ BucketShard *bs = nullptr;
int r;
#define NUM_RESHARD_RETRIES 10
return 0;
}
RGWRados *store = target->get_store();
- BucketShard *bs;
+ BucketShard *bs = nullptr;
int ret = get_bucket_shard(&bs, dpp);
if (ret < 0) {