diff options
author | Yehuda Sadeh <yehuda@inktank.com> | 2013-03-22 10:54:47 -0700 |
---|---|---|
committer | Yehuda Sadeh <yehuda@inktank.com> | 2013-04-15 14:44:08 -0700 |
commit | 9a4dfab39437aad58c6be2704fa4c96c9459eee0 (patch) | |
tree | 3be51327e3bcbc7bd40f7399778aa3c97aa46e4e | |
parent | 67aab5840a820df41e4e22adea475c7b9727bd14 (diff) | |
download | ceph-9a4dfab39437aad58c6be2704fa4c96c9459eee0.tar.gz |
rgw: cls_log_trim boundary change
end_time is not inclusive
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r-- | src/cls/log/cls_log.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cls/log/cls_log.cc b/src/cls/log/cls_log.cc index 013c27aa5aa..c2d50fb6a34 100644 --- a/src/cls/log/cls_log.cc +++ b/src/cls/log/cls_log.cc @@ -198,7 +198,7 @@ static int cls_log_trim(cls_method_context_t hctx, bufferlist *in, bufferlist *o CLS_LOG(20, "index=%s to_index=%s", index.c_str(), to_index.c_str()); - if (index.compare(0, to_index.size(), to_index) > 0) + if (index.compare(0, to_index.size(), to_index) >= 0) break; CLS_LOG(20, "removing key: index=%s", index.c_str()); |