RGWBucketInfo bucket_info;
rgw_obj_key key;
- uint64_t versioned_epoch;
+ boost::optional<uint64_t> versioned_epoch;
real_time src_mtime;
const string& _source_zone,
RGWBucketInfo& _bucket_info,
const rgw_obj_key& _key,
- uint64_t _versioned_epoch,
+ boost::optional<uint64_t> _versioned_epoch,
bool _if_newer, rgw_zone_set *_zones_trace) : RGWAsyncRadosRequest(caller, cn), store(_store),
source_zone(_source_zone),
bucket_info(_bucket_info),
RGWBucketInfo bucket_info;
rgw_obj_key key;
- uint64_t versioned_epoch;
+ boost::optional<uint64_t> versioned_epoch;
real_time src_mtime;
const string& _source_zone,
RGWBucketInfo& _bucket_info,
const rgw_obj_key& _key,
- uint64_t _versioned_epoch,
+ boost::optional<uint64_t> _versioned_epoch,
bool _if_newer, rgw_zone_set *_zones_trace) : RGWSimpleCoroutine(_store->ctx()), cct(_store->ctx()),
async_rados(_async_rados), store(_store),
source_zone(_source_zone),
bool copy_if_newer,
map<string, bufferlist>& attrs,
RGWObjCategory category,
- uint64_t olh_epoch,
+ boost::optional<uint64_t> olh_epoch,
real_time delete_at,
string *version_id,
string *ptag,
if (version_id && *version_id != "null") {
processor.set_version_id(*version_id);
}
- processor.set_olh_epoch(olh_epoch);
+ if (olh_epoch) {
+ processor.set_olh_epoch(*olh_epoch);
+ }
int ret = processor.prepare(this, NULL);
if (ret < 0) {
return ret;