mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-14 04:24:20 +01:00
wait for the read completion
The submit_and_wait command waits for `n` completion events. We were providing an incorrect argument, which caused the issue.
This commit is contained in:
@@ -31,7 +31,7 @@ impl IO for LinuxIO {
|
||||
fn run_once(&self) -> Result<()> {
|
||||
trace!("run_once()");
|
||||
let mut ring = self.ring.borrow_mut();
|
||||
ring.submit_and_wait(0)?;
|
||||
ring.submit_and_wait(1)?;
|
||||
loop {
|
||||
match ring.completion().next() {
|
||||
Some(cqe) => {
|
||||
|
||||
Reference in New Issue
Block a user