]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cls/rgw: restore backward-compatible encoding of cls_rgw_bucket_instance_entry
authorCasey Bodley <cbodley@redhat.com>
Mon, 22 Aug 2022 19:57:39 +0000 (15:57 -0400)
committerCasey Bodley <cbodley@redhat.com>
Mon, 22 Aug 2022 19:59:18 +0000 (15:59 -0400)
commitc1bb5feef75314576af6a427b73ec223ad1fd5e3
tree294c78c99b94d2aa21f54d543a64758880d6f5b2
parente87b47d8552e5a9e7fbbd6ea5943afed37a0c412
cls/rgw: restore backward-compatible encoding of cls_rgw_bucket_instance_entry

the encoding of `cls_rgw_bucket_instance_entry` changed in
bd0b0e5d984c83504f88fa155a7dfc6f6571aa49 such that pacific/quincy
OSDs cannot read the version written by reef OSDs

two fields (bucket_instance_id and num_shards) were removed in the v2
encoder, but the v1 decoder still expects them to be present

since we haven't released reef yet, we can fix this with a v3 that adds
the fields back

Fixes: https://tracker.ceph.com/issues/57232
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/cls/rgw/cls_rgw_types.h