Skip to content

Commit 332b547

Browse files
committed
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 <[email protected]>
1 parent ce0b1ed commit 332b547

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/osd/ECBackend.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ bool ECBackend::_handle_message(
281281
reply->min_epoch = get_parent()->get_interval_start_epoch();
282282
handle_sub_read(op->op.from, op->op, &(reply->op), _op->pg_trace);
283283
reply->trace = _op->pg_trace;
284+
reply->pgid.reset_shard(op->op.from.shard);
284285
get_parent()->send_message_osd_cluster(
285286
reply, _op->get_req()->get_connection());
286287
return true;

0 commit comments

Comments
 (0)