mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-03 16:34:19 +01:00
Handle partial writes for pwritev calls in io_uring and fix JS bindings
This commit is contained in:
@@ -720,12 +720,14 @@ impl turso_core::DatabaseStorage for DatabaseFile {
|
||||
}
|
||||
fn write_pages(
|
||||
&self,
|
||||
_first_page_idx: usize,
|
||||
_page_size: usize,
|
||||
_buffers: Vec<Arc<RefCell<turso_core::Buffer>>>,
|
||||
_c: turso_core::Completion,
|
||||
page_idx: usize,
|
||||
page_size: usize,
|
||||
buffers: Vec<Arc<RefCell<turso_core::Buffer>>>,
|
||||
c: turso_core::Completion,
|
||||
) -> turso_core::Result<()> {
|
||||
todo!();
|
||||
let pos = (page_idx - 1) * page_size;
|
||||
self.file.pwritev(pos, buffers, c.into())?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn sync(&self, c: turso_core::Completion) -> turso_core::Result<turso_core::Completion> {
|
||||
|
||||
Reference in New Issue
Block a user