summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@inktank.com>2013-06-29 21:00:05 -0700
committerYehuda Sadeh <yehuda@inktank.com>2013-06-29 21:00:05 -0700
commitc73a24be07700915fad75d6ac3a49489b84476ec (patch)
treee7fa0ab93098ba1fc611c600ecdf19a02fb928f8
parentc4140303b7ed6a5ebb9878d98a31a1b0cbea1854 (diff)
downloadceph-c73a24be07700915fad75d6ac3a49489b84476ec.tar.gz
rgw: end-marker serves as last value, not as upperbound
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r--src/cls/log/cls_log.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cls/log/cls_log.cc b/src/cls/log/cls_log.cc
index 74bd147320b..8c62b5a9a68 100644
--- a/src/cls/log/cls_log.cc
+++ b/src/cls/log/cls_log.cc
@@ -211,7 +211,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());