diff options
author | Yehuda Sadeh <yehuda@hq.newdream.net> | 2012-01-31 14:21:08 -0800 |
---|---|---|
committer | Yehuda Sadeh <yehuda@hq.newdream.net> | 2012-01-31 14:21:08 -0800 |
commit | c1dc58b967addd7b2587b8108775a0f6e17a1c46 (patch) | |
tree | 86fb12e3f90bbe1f96c48f41486e9371a405e527 /src/rados.cc | |
parent | afe1eaa3c17c4e61dee2b6411724d369ef193f47 (diff) | |
download | ceph-historic/wip-objs-expire.tar.gz |
librados: add explicit remove_expiration() call to libradoshistoric/wip-objs-expire
also, time is converted to utc.
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Diffstat (limited to 'src/rados.cc')
-rw-r--r-- | src/rados.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rados.cc b/src/rados.cc index d33c6b1f484..9d2840ce5e4 100644 --- a/src/rados.cc +++ b/src/rados.cc @@ -1068,9 +1068,8 @@ static int rados_tool_common(const std::map < std::string, std::string > &opts, if (!pool_name || nargs.size() < 2) usage_exit(); string oid(nargs[1]); - utime_t t(0, 0); - ret = io_ctx.set_expiration(oid, t); + ret = io_ctx.remove_expiration(oid); if (ret < 0) { cerr << "error removing expiration from " << pool_name << "/" << oid << ": " << strerror_r(-ret, buf, sizeof(buf)) << std::endl; return 1; |