Merge 'Fix infinite loop when IO failure happens on allocating first page' from Preston Thorpe

closes #2919

Reviewed-by: Pedro Muniz (@pedrocarlo)

Closes #2968
This commit is contained in:
Pekka Enberg
2025-09-08 18:59:34 +03:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View File

@@ -4,6 +4,7 @@
*.so
*.ipynb
*.o
# Python
.mypy_cache/

View File

@@ -1012,9 +1012,10 @@ impl Pager {
// Give a chance for the allocation to happen elsewhere
_ => {}
}
} else {
// Give a chance for the allocation to happen elsewhere
io_yield_one!(Completion::new_dummy());
}
// Give a chance for the allocation to happen elsewhere
io_yield_one!(Completion::new_dummy());
}
Ok(IOResult::Done(()))
}