From eeb6727170a2d99473eb76412d104b78a83d6831 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Tue, 23 May 2023 01:04:27 +0300 Subject: [PATCH] Fix missing checksum read offset --- src/blockstore_read.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blockstore_read.cpp b/src/blockstore_read.cpp index ef833f56..b256e52e 100644 --- a/src/blockstore_read.cpp +++ b/src/blockstore_read.cpp @@ -308,7 +308,7 @@ bool blockstore_impl_t::read_checksum_block(blockstore_op_t *op, int rv_pos, uin int n_cur = n_iov-n_pos < IOV_MAX ? n_iov-n_pos : IOV_MAX; BS_SUBMIT_GET_SQE(sqe, data); PRIV(op)->pending_ops++; - my_uring_prep_readv(sqe, submit_fd, iov + n_pos, n_cur, submit_offset + clean_loc + d_pos); + my_uring_prep_readv(sqe, submit_fd, iov + n_pos, n_cur, submit_offset + clean_loc + item_start + d_pos); data->callback = [this, op](ring_data_t *data) { handle_read_event(data, op); }; if (n_pos > 0 || n_pos + IOV_MAX < n_iov) {