diff options
author | Yehuda Sadeh <yehuda@redhat.com> | 2014-09-10 21:21:01 +0200 |
---|---|---|
committer | Yehuda Sadeh <yehuda@redhat.com> | 2015-01-16 23:33:53 +0100 |
commit | 67b73a98363256920a5ef025b3696b7cf077f9aa (patch) | |
tree | ef9622715cd631ee905222e0478b8399fc45333f /src/cls/rgw/cls_rgw_client.cc | |
parent | rgw: apply olh log functionality (diff) | |
download | ceph-67b73a98363256920a5ef025b3696b7cf077f9aa.tar.xz ceph-67b73a98363256920a5ef025b3696b7cf077f9aa.zip |
rgw, cls_rgw: trim olh log functionality
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Diffstat (limited to 'src/cls/rgw/cls_rgw_client.cc')
-rw-r--r-- | src/cls/rgw/cls_rgw_client.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cls/rgw/cls_rgw_client.cc b/src/cls/rgw/cls_rgw_client.cc index e9c4b64a6cb..e7eeec0b578 100644 --- a/src/cls/rgw/cls_rgw_client.cc +++ b/src/cls/rgw/cls_rgw_client.cc @@ -139,6 +139,20 @@ int cls_rgw_get_olh_log(IoCtx& io_ctx, string& oid, const cls_rgw_obj_key& olh, return r; } +int cls_rgw_trim_olh_log(IoCtx& io_ctx, string& oid, const cls_rgw_obj_key& olh, uint64_t ver) +{ + bufferlist in, out; + struct rgw_cls_trim_olh_log_op call; + call.olh = olh; + call.ver = ver; + ::encode(call, in); + int r = io_ctx.exec(oid, "rgw", "bucket_trim_olh_log", in, out); + if (r < 0) + return r; + + return 0; +} + int cls_rgw_bucket_check_index_op(IoCtx& io_ctx, string& oid, rgw_bucket_dir_header *existing_header, rgw_bucket_dir_header *calculated_header) |