]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/cloudtier: Correct option ordering in RGWZoneGroupPlacementTier 61569/head
authorSoumya Koduri <skoduri@redhat.com>
Wed, 29 Jan 2025 16:17:45 +0000 (21:47 +0530)
committerSoumya Koduri <skoduri@redhat.com>
Tue, 4 Mar 2025 18:26:42 +0000 (23:56 +0530)
commitc2d226adb00f37060c54c7de5732f814666fd17b
treec1e64f27f9f0054259bd6c44acbfa7849c3da8ea
parentd492e85ad03a8cbef7bd9e27f1f6bc6e27c515ff
rgw/cloudtier: Correct option ordering in RGWZoneGroupPlacementTier

Two tier-config options (related to `cloud-restore`) were incorrectly added
in the middle of the encoding and decoding methods of RGWZoneGroupPlacementTier.
This modification can cause compatibility issues with older decoders when
attempting to read v2-encoded REST objects.

The fix is to correct the option order and update the decode() function to
properly interpret the structure based on the encoded version.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
src/rgw/rgw_zone_types.h