RGWFileHandle::FLAG_BUCKET);
if (get<0>(fhr)) {
RGWFileHandle* rgw_fh = get<0>(fhr);
+ rgw_fh->set_times(req.get_ctime());
/* restore attributes */
auto ux_key = req.get_attr(RGW_ATTR_UNIX_KEY1);
auto ux_attrs = req.get_attr(RGW_ATTR_UNIX1);
if (get<0>(fhr)) {
RGWFileHandle* rgw_fh = get<0>(fhr);
rgw_fh->set_size(req.get_size());
- rgw_fh->set_mtime(real_clock::to_timespec(req.get_mtime()));
+ rgw_fh->set_times(req.get_mtime());
/* restore attributes */
auto ux_key = req.get_attr(RGW_ATTR_UNIX_KEY1);
auto ux_attrs = req.get_attr(RGW_ATTR_UNIX1);
if (get<0>(fhr)) {
RGWFileHandle* rgw_fh = get<0>(fhr);
rgw_fh->set_size(req.get_size());
- rgw_fh->set_mtime(real_clock::to_timespec(req.get_mtime()));
+ rgw_fh->set_times(req.get_mtime());
/* restore attributes */
auto ux_key = req.get_attr(RGW_ATTR_UNIX_KEY1);
auto ux_attrs = req.get_attr(RGW_ATTR_UNIX1);
return (iter != attrs.end()) ? &(iter->second) : nullptr;
}
+ real_time get_ctime() const {
+ return bucket.creation_time;
+ }
+
virtual bool only_bucket() { return false; }
virtual int op_init() {
return 0;
}
- real_time get_ctime() const {
- return bucket.creation_time;
- }
-
virtual int get_params() {
return 0;
}