]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cls/rgw: list_plain_entries() stops before bi_log entries
authorCasey Bodley <cbodley@redhat.com>
Fri, 5 May 2017 18:56:40 +0000 (14:56 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 5 May 2017 19:48:20 +0000 (15:48 -0400)
commitb29a1633a57abf443d5790c13d680d2917f86037
treeac8bc2145c0c8143aa02271ef229892bf337a57f
parent9667761ecfdcfc70daa937f22a79cef2818be04b
cls/rgw: list_plain_entries() stops before bi_log entries

list_plain_entries() was using encode_obj_versioned_data_key() to set
its end_key, which gives a prefix of BI_BUCKET_OBJ_INSTANCE_INDEX[=2]

that range between start_key and end_key would not only span the
BI_BUCKET_OBJS_INDEX[=0] prefixes, but BI_BUCKET_LOG_INDEX[=1] prefixes
as well. this can result in list_plain_entries() trying and failing to
decode a rgw_bi_log_entry as a rgw_bucket_dir_entry

Fixes: http://tracker.ceph.com/issues/19876
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/cls/rgw/cls_rgw.cc