]> 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)
committerAlex Ainscow <aainscow@uk.ibm.com>
Sun, 7 Sep 2025 23:10:41 +0000 (00:10 +0100)
commitfef969b0add85d6915f5616fde2cfd8ce3b702c1
tree47088d79a010481b46ed607a6f2160835f8eb417
parent7e0d6bf149e07422ce9ca45d1a4ca0234f67cc39
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