]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon: Optimized EC clean_temps needs to permit primary change
authorBill Scales <bill_scales@uk.ibm.com>
Mon, 23 Jun 2025 10:36:37 +0000 (11:36 +0100)
committerJon <jonathan.bailey1@ibm.com>
Fri, 3 Oct 2025 13:31:23 +0000 (14:31 +0100)
commitfb468695cacb4458019f3ba4472d50efbdb63635
tree7da3ec5458bcddea9bc7dd16d316f30e50b5ad55
parentc5c0d3aea08a58f15b63a802c08e1de39614440f
mon: Optimized EC clean_temps needs to permit primary change

Optimized EC pools were blocking clean_temps from clearing pg_temp
when up == acting but up_primary != acting_primary because optimized
pools sometimes use pg_temp to force a change of primary shard.

However this can block merges which require the two PGs being
merged to have the same primary. Relax clean_temps to permit
pg_temp to be cleared so long as the new primary is not a
non-primary shard.

Signed-off-by: Bill Scales <bill_scales@uk.ibm.com>
(cherry picked from commit ce53276191e60375486f75d93508690f780bee21)
src/osd/OSDMap.cc