Skip to content

Commit 47a5d48

Browse files
committed
activate
1 parent 9ed6ff3 commit 47a5d48

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

riffle-server/src/store/local/uring_io.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,12 @@ impl UringIoEngineShard {
311311
self.write_inflight += 1;
312312
// https://github.com/tokio-rs/io-uring/blob/master/io-uring-test/src/utils.rs#L95
313313
use libc::iovec;
314-
315314
let slices: Vec<iovec> = ctx
316315
.w_bufs
317316
.iter()
318317
.map(|b| iovec {
319-
iov_base: b.as_ptr() as *mut _,
320-
iov_len: b.len(),
318+
iov_base: b.ptr as *mut _,
319+
iov_len: b.len,
321320
})
322321
.collect();
323322
opcode::Writev::new(fd, slices.as_ptr(), slices.len() as _)

0 commit comments

Comments
 (0)