Skip to content

Commit be468d3

Browse files
committed
Change opcode before forwarding blockop
Signed-off-by: Mike Ponomarenko <[email protected]>
1 parent 01fb245 commit be468d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

db/toblock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,12 +535,12 @@ static int forward_block_to_master(struct ireq *iq, block_state_t *p_blkstate,
535535
p_blkstate->p_buf_req_start,iq->comdbg_flags) != p_blkstate->p_buf_req_start)
536536
return ERR_INTERNAL;
537537
req_hdr.opcode = OP_FWD_BLOCK;
538+
if (iq->comdbg_flags & COMDBG_FLAG_FROM_LE) {
539+
req_hdr.opcode = OP_FWD_BLOCK_LE;
540+
}
538541
if (req_hdr_put(&req_hdr, iq->p_buf_out_start,
539542
p_blkstate->p_buf_req_start) != p_blkstate->p_buf_req_start)
540543
return ERR_INTERNAL;
541-
if (iq->comdbg_flags & COMDBG_FLAG_FROM_LE) {
542-
req_hdr.opcode = OP_FWD_BLOCK_LE;
543-
}
544544

545545

546546
fwd.source_node = 0;

0 commit comments

Comments
 (0)