]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: end-marker serves as last value, not as upperbound
authorYehuda Sadeh <yehuda@inktank.com>
Sun, 30 Jun 2013 04:00:05 +0000 (21:00 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Sun, 30 Jun 2013 04:00:05 +0000 (21:00 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/cls/log/cls_log.cc

index 74bd147320be158ec614f324da39751bb8e558a2..8c62b5a9a688edbaca06ba73d85d80f373d49991 100644 (file)
@@ -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());