mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 10:08:20 +00: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:
parent
1149ba11dc
commit
fd9af2739e
1 changed files with 1 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue