From: Soumya Koduri Date: Sun, 6 Jul 2025 16:58:22 +0000 (+0530) Subject: rgw: Fix the version of struct RGWZoneParams X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=b6fc0be439f79f2aef833d703f7a6f9c2e48de02;p=ceph.git rgw: Fix the version of struct RGWZoneParams Fix the version of `restore_pool` and `dedup_pool` to be compatible with earlier releases. Signed-off-by: Soumya Koduri --- diff --git a/src/rgw/rgw_zone.h b/src/rgw/rgw_zone.h index cec4e574ebc63..5d18a17f8c790 100644 --- a/src/rgw/rgw_zone.h +++ b/src/rgw/rgw_zone.h @@ -98,8 +98,8 @@ struct RGWZoneParams { encode(topics_pool, bl); encode(account_pool, bl); encode(group_pool, bl); - encode(dedup_pool, bl); encode(restore_pool, bl); + encode(dedup_pool, bl); ENCODE_FINISH(bl); } @@ -190,14 +190,14 @@ struct RGWZoneParams { group_pool = name + ".rgw.meta:groups"; } if (struct_v >= 16) { - decode(dedup_pool, bl); + decode(restore_pool, bl); } else { - dedup_pool = name + ".rgw.dedup"; + restore_pool = log_pool.name + ":restore"; } if (struct_v >= 17) { - decode(restore_pool, bl); + decode(dedup_pool, bl); } else { - restore_pool = log_pool.name + ":restore"; + dedup_pool = name + ".rgw.dedup"; } DECODE_FINISH(bl); }