]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: Perform shard look up correctly in partial EC writes 66453/head
authorAlex Ainscow <aainscow@uk.ibm.com>
Fri, 28 Nov 2025 14:33:13 +0000 (14:33 +0000)
committerAlex Ainscow <aainscow@uk.ibm.com>
Fri, 28 Nov 2025 14:35:03 +0000 (14:35 +0000)
commite2af5a8266f4a639ac8b4f165a3f00fa429097dc
tree8979540342a92812edcf123a359c13734b2f0f7e
parent2053c2e9134fd261a2585ccbcd6cdd5fb79d4563
osd: Perform shard look up correctly in partial EC writes

Plugins are permitted to provide a mapping to change the order in which OSDs
are used. In practice only LRC does this and it is not currently enabled
with optimisations, so this is a theoretical bug.

The bug here was that the "first" shard was assumed to be shard_id_t(0).  However,
this is not true for LRC.

Fixes: https://tracker.ceph.com/issues/74016
Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
src/osd/ECTransaction.cc