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.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=e40bab313df3728017eefd915028354d3f3f55db;p=ceph-ci.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 52dd2d84378..c8e6521cee3 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;