]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls_rgw: bound bi log listing appropriately
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 6 Jan 2015 00:32:48 +0000 (16:32 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Mon, 19 Jan 2015 23:58:00 +0000 (15:58 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/cls/rgw/cls_rgw.cc

index 2d683f44c8949899bcc3e8f20188ab089857b153..d9e5c776eef989b3bd477d520d6afea44b4a5521 100644 (file)
@@ -2271,7 +2271,7 @@ static int bi_log_iterate_entries(cls_method_context_t hctx, const string& marke
 
   if (end_marker.empty()) {
     end_key = BI_PREFIX_CHAR;
-    end_key.append(bucket_index_prefixes[BI_BUCKET_LAST_INDEX]);
+    end_key.append(bucket_index_prefixes[BI_BUCKET_LOG_INDEX + 1]);
   } else {
     end_key = BI_PREFIX_CHAR;
     end_key.append(bucket_index_prefixes[BI_BUCKET_LOG_INDEX]);