summaryrefslogtreecommitdiffstats
path: root/src/cls/rgw
diff options
context:
space:
mode:
Diffstat (limited to 'src/cls/rgw')
-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,