From: Alex Ainscow Date: Fri, 3 Oct 2025 13:17:48 +0000 (+0100) Subject: osd: Set the from shard in the EC read reply. X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=332b547ff8eb86fda076f098c2d3b740d67c4e2f;p=ceph.git osd: Set the from shard in the EC read reply. 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 --- diff --git a/src/osd/ECBackend.cc b/src/osd/ECBackend.cc index 8842da00e138..6c7695c8845e 100644 --- a/src/osd/ECBackend.cc +++ b/src/osd/ECBackend.cc @@ -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;