]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: cls_log_trim boundary change
authorYehuda Sadeh <yehuda@inktank.com>
Fri, 22 Mar 2013 17:54:47 +0000 (10:54 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Wed, 8 May 2013 17:57:45 +0000 (10:57 -0700)
end_time is not inclusive

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/cls/log/cls_log.cc

index 013c27aa5aab8767da9ad128ea248a96066917f4..c2d50fb6a34f37682548b5ece06cfcc4b61dbde8 100644 (file)
@@ -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());