Skip to content

Commit c0c035e

Browse files
authored
Merge pull request ceph#64361 from soumyakoduri/wip-skoduri-zoneparams-vers
rgw: Fix the version of restore_pool and dedup_pool Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 parents e82b088 + b6fc0be commit c0c035e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/rgw/rgw_zone.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ struct RGWZoneParams {
9898
encode(topics_pool, bl);
9999
encode(account_pool, bl);
100100
encode(group_pool, bl);
101-
encode(dedup_pool, bl);
102101
encode(restore_pool, bl);
102+
encode(dedup_pool, bl);
103103
ENCODE_FINISH(bl);
104104
}
105105

@@ -190,14 +190,14 @@ struct RGWZoneParams {
190190
group_pool = name + ".rgw.meta:groups";
191191
}
192192
if (struct_v >= 16) {
193-
decode(dedup_pool, bl);
193+
decode(restore_pool, bl);
194194
} else {
195-
dedup_pool = name + ".rgw.dedup";
195+
restore_pool = log_pool.name + ":restore";
196196
}
197197
if (struct_v >= 17) {
198-
decode(restore_pool, bl);
198+
decode(dedup_pool, bl);
199199
} else {
200-
restore_pool = log_pool.name + ":restore";
200+
dedup_pool = name + ".rgw.dedup";
201201
}
202202
DECODE_FINISH(bl);
203203
}

0 commit comments

Comments
 (0)