]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
erasure-code: clay wrong d calculation
authorNitzan Mordechai <nmordech@redhat.com>
Mon, 20 Jan 2025 13:30:29 +0000 (13:30 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Thu, 13 Feb 2025 10:05:08 +0000 (10:05 +0000)
commite4a07d65e1f0cee330ae45e86d78f16231521b21
tree8afe9f547421f8c54e67b5963119fe39652fa256
parent058003e94f51b8fea563025990c0b558fccbaa20
erasure-code: clay wrong d calculation

Fix validation logic for `d` in CLAY erasure code profiles
Updated validation to ensure `d` satisfies `k + 1 <= d <= k + m - 1`.
This change aligns the implementation with the documented constraints
for CLAY erasure code profiles, ensuring consistent behavior and avoiding
undefined scenarios.

Fixes: https://tracker.ceph.com/issues/69506
Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
src/erasure-code/clay/ErasureCodeClay.cc