/*
* we might need some special handling if overwriting
*/
-
+ RGWBucketInfo shared_bucket_info;
if (!orig_info && !exclusive) { /* if exclusive, we're going to fail when try
to overwrite, so the whole check here is moot */
- /* we're here because orig_info wasn't passed in */
- RGWBucketInfo _orig_info;
-
/*
+ * we're here because orig_info wasn't passed in
* we don't have info about what was there before, so need to fetch first
*/
int r = read_bucket_instance_info(ctx,
key,
- &_orig_info,
+ &shared_bucket_info,
nullptr, nullptr,
y,
nullptr, boost::none);
return r;
}
} else {
- *orig_info = &_orig_info;
+ *orig_info = &shared_bucket_info;
}
}