mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-04 08:54:20 +01:00
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:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,6 +4,7 @@
|
||||
|
||||
*.so
|
||||
*.ipynb
|
||||
*.o
|
||||
|
||||
# Python
|
||||
.mypy_cache/
|
||||
|
||||
@@ -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(()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user