From: Yehuda Sadeh Date: Sun, 30 Jun 2013 04:00:05 +0000 (-0700) Subject: rgw: end-marker serves as last value, not as upperbound X-Git-Tag: v0.67-rc1~128^2~18^2~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c73a24be07700915fad75d6ac3a49489b84476ec;p=ceph.git rgw: end-marker serves as last value, not as upperbound Signed-off-by: Yehuda Sadeh --- diff --git a/src/cls/log/cls_log.cc b/src/cls/log/cls_log.cc index 74bd147320be..8c62b5a9a688 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());