summaryrefslogtreecommitdiffstats
path: root/src/cls
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@inktank.com>2013-05-08 23:54:54 +0200
committerYehuda Sadeh <yehuda@inktank.com>2013-05-09 01:26:46 +0200
commit551571ca88c9396b594df7be4309278a90046fae (patch)
tree8fb1b5904d6e4a486ac9503810d725f28534d3a2 /src/cls
parentrgw: bucket index log trim (diff)
downloadceph-551571ca88c9396b594df7be4309278a90046fae.tar.xz
ceph-551571ca88c9396b594df7be4309278a90046fae.zip
rgw: datalog trim
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Diffstat (limited to 'src/cls')
-rw-r--r--src/cls/rgw/cls_rgw_client.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cls/rgw/cls_rgw_client.cc b/src/cls/rgw/cls_rgw_client.cc
index 749e83dda96..c2c6cca85c2 100644
--- a/src/cls/rgw/cls_rgw_client.cc
+++ b/src/cls/rgw/cls_rgw_client.cc
@@ -195,14 +195,14 @@ int cls_rgw_bi_log_trim(IoCtx& io_ctx, string& oid, string& start_marker, string
r = io_ctx.exec(oid, "rgw", "bi_log_trim", in, out);
if (r == -ENODATA)
- return 0;
+ break;
if (r < 0)
return r;
- } while (r != -ENODATA);
+ } while (1);
- return 0;
+ return 0;
}
int cls_rgw_usage_log_read(IoCtx& io_ctx, string& oid, string& user,