]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: EC optimizations rework for pg_temp
authorBill Scales <bill_scales@uk.ibm.com>
Thu, 29 May 2025 11:53:27 +0000 (12:53 +0100)
committerAlex Ainscow <aainscow@uk.ibm.com>
Wed, 25 Jun 2025 22:36:40 +0000 (23:36 +0100)
commit6c8b0297aaafeb0cff7350e52212140c85435afe
tree371381555832c04c045984207246a0b78d69fa1c
parent9d9265337a43b3edab8a3c41752baaca835be92a
osd: EC optimizations rework for pg_temp

Bug fixes for how pg_temp is used with optimized EC pools. For these
pools pg_temp is re-ordered with non-primary shards last. The acting
set was undoing this re-ordering in PeeringState, but this is too
late and results code getting the shard id wrong. One consequence
iof this was an OSD refusing to create a PG because of an incorrect
shard id.

This commit moves the re-ordering earlier into OSDMap::_get_temp_osds,
some changes are then required to OSDMap::clean_temps.

Signed-off-by: Bill Scales <bill_scales@uk.ibm.com>
src/osd/OSDMap.cc
src/osd/OSDMap.h
src/osd/PeeringState.cc