]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: Generalise can_serve_replica_read for consumption by EC.
authorAlex Ainscow <aainscow@uk.ibm.com>
Fri, 3 Oct 2025 13:15:32 +0000 (14:15 +0100)
committerAlex Ainscow <aainscow@uk.ibm.com>
Wed, 26 Nov 2025 11:28:25 +0000 (11:28 +0000)
commitce0b1ed93d1345d372d1b742f86e4cf683a9329e
treef382f2fbb000c85e9d23b9e4dc0e576955bed8a7
parentd9f4ee459667d25ccc0fdcf61eea18d862d5656b
osd: Generalise can_serve_replica_read for consumption by EC.

The can_serve_replica_read() function is called by replica to determine whether there are
any uncommitted writes.  If such writes exist, then the system will reject the IO to avoid
the risk of reading data from a write which may yet be rolled back.

The same code is going to be useful for EC direct reads.

The string_view code is not expensive.

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
src/crimson/osd/osd_operations/client_request.cc
src/messages/MOSDRepOp.h
src/osd/PeeringState.cc
src/osd/PeeringState.h
src/osd/PrimaryLogPG.cc