]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd: Set the from shard in the EC read reply.
authorAlex Ainscow <aainscow@uk.ibm.com>
Fri, 3 Oct 2025 13:17:48 +0000 (14:17 +0100)
committerAlex Ainscow <aainscow@uk.ibm.com>
Tue, 21 Oct 2025 13:34:54 +0000 (14:34 +0100)
This was not necessary prior to direct reads, but is essential when the
client needs to know which shard the read came from.

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

index 52dd2d8437826ee1dd28c9847522275a7e0ed1a3..c8e6521cee34132c663a960f77ce4fdb268c192b 100644 (file)
@@ -281,6 +281,7 @@ bool ECBackend::_handle_message(
     reply->min_epoch = get_parent()->get_interval_start_epoch();
     handle_sub_read(op->op.from, op->op, &(reply->op), _op->pg_trace);
     reply->trace = _op->pg_trace;
+    reply->pgid.reset_shard(op->op.from.shard);
     get_parent()->send_message_osd_cluster(
       reply, _op->get_req()->get_connection());
     return true;