]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: Make EC Sync reads return a zero RC for success.
authorAlex Ainscow <aainscow@uk.ibm.com>
Fri, 17 Oct 2025 08:09:54 +0000 (09:09 +0100)
committerAlex Ainscow <aainscow@uk.ibm.com>
Tue, 21 Oct 2025 13:34:54 +0000 (14:34 +0100)
commit08638eb681c2b6483d7a7601fee99a98cbb2328f
treeed372354b1cb28b1ee0bf5e6c2a60e4bf1c8c19e
parent6bc4c2b59171c962c73b78ff055721743750d7ae
osd: Make EC Sync reads return a zero RC for success.

This was a misunderstanding of the API. The librados client expects that
a read returns zero on success, not the number of bytes read.

Correspondingly, simplify the client-based SplitOps rc handling code to
always return 0. It tolerates >0 RCs, but will always return zero.

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
src/osd/PrimaryLogPG.cc
src/osdc/SplitOp.cc