core: Fix benchmark panic if syscall is interrupted

Fixes the following panics:

Benchmarking Execute `SELECT * FROM users LIMIT ?`/Limbo/100: Profiling for 5.0000 sthread 'main' panicked at core/benches/benchmark.rs:69:43:
called `Result::unwrap()` on an `Err` value: IOError(Os { code: 4, kind: Interrupted, message: "Interrupted system call" })
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
This commit is contained in:
Pekka Enberg
2025-02-04 13:23:53 +02:00
parent fb0a560d76
commit 7dbfdba59f

View File

@@ -66,7 +66,7 @@ fn bench(criterion: &mut Criterion) {
black_box(row);
}
limbo_core::StepResult::IO => {
io.run_once().unwrap();
let _ = io.run_once();
}
limbo_core::StepResult::Done => {
break;
@@ -113,7 +113,7 @@ fn bench(criterion: &mut Criterion) {
black_box(row);
}
limbo_core::StepResult::IO => {
io.run_once().unwrap();
let _ = io.run_once();
}
limbo_core::StepResult::Done => {
break;