diff options
author | Yehuda Sadeh <yehuda@redhat.com> | 2016-03-03 07:23:41 +0100 |
---|---|---|
committer | Yehuda Sadeh <yehuda@redhat.com> | 2016-03-15 05:44:40 +0100 |
commit | 416234b38be77ebb2decabc91a74055387a4b10a (patch) | |
tree | 27a47b3f5f2f7c66c8e35a2ce4b189566b4cb17b /src/rgw/rgw_rest_metadata.cc | |
parent | utime: add conversion methods to/from real_time (diff) | |
download | ceph-416234b38be77ebb2decabc91a74055387a4b10a.tar.xz ceph-416234b38be77ebb2decabc91a74055387a4b10a.zip |
rgw: high resolution time
replace time_t, and some utime_t with ceph::real_clock. Use new
librados interfaces to stat() and set mtime.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
Diffstat (limited to 'src/rgw/rgw_rest_metadata.cc')
-rw-r--r-- | src/rgw/rgw_rest_metadata.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rgw/rgw_rest_metadata.cc b/src/rgw/rgw_rest_metadata.cc index fb2663e6e7b..4f22a945dca 100644 --- a/src/rgw/rgw_rest_metadata.cc +++ b/src/rgw/rgw_rest_metadata.cc @@ -250,8 +250,7 @@ void RGWOp_Metadata_Lock::execute() { http_ret = -EINVAL; return; } - utime_t time(dur, 0); - http_ret = store->meta_mgr->lock_exclusive(metadata_key, time, lock_id); + http_ret = store->meta_mgr->lock_exclusive(metadata_key, timespan(dur), lock_id); if (http_ret == -EBUSY) http_ret = -ERR_LOCKED; } |