]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon: prime_pg_temp needs to call pgtemp_primaryfirst when encoding pg_temp
authorBill Scales <bill_scales@uk.ibm.com>
Wed, 21 May 2025 12:23:33 +0000 (13:23 +0100)
committerLaura Flores <lflores@ibm.com>
Wed, 9 Jul 2025 15:47:24 +0000 (15:47 +0000)
commitc6a81b892216be9ace541b33e9b6c709148fecc0
treed31f388fdb70f49228b5dfa90b7f3794cdec8a55
parent63636624ec5eb2d767ba721e66cb7521b4136f32
mon: prime_pg_temp needs to call pgtemp_primaryfirst when encoding pg_temp

Optimized EC pools encode pgtemp in a different order putting the shards
which cannot become the primary (nonprimary shards) last.

prime_pg_temp is missing a call to pgtemp_primaryfirst to reorder the
acting set it is trying to set as pg_temp.

Signed-off-by: Bill Scales <bill_scales@uk.ibm.com>
(cherry picked from commit 95da0cdf96da96ba14cfbc5ee9489aabf9e10fbf)
src/mon/OSDMonitor.cc