Merge pull request #29897 from tianshan/fix_list_start_with_null_marker

rgw: fix list versions starts with version_id=null

Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
Casey Bodley 2019-09-19 14:23:31 -04:00 committed by GitHub
commit 3993a72412
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -283,7 +283,11 @@ static int encode_list_index_key(cls_method_context_t hctx, const cls_rgw_obj_ke
}
string obj_index_key;
encode_obj_index_key(key, &obj_index_key);
cls_rgw_obj_key tmp_key(key);
if (tmp_key.instance == "null") {
tmp_key.instance.clear();
}
encode_obj_versioned_data_key(tmp_key, &obj_index_key);
rgw_bucket_dir_entry entry;