Make writing wal header able to be sync

This commit is contained in:
PThorpe92
2025-07-18 14:46:19 -04:00
committed by Jussi Saurio
parent dcf346b9b0
commit 9c75872827
13 changed files with 47 additions and 49 deletions

View File

@@ -726,9 +726,12 @@ impl turso_core::DatabaseStorage for DatabaseFile {
fn size(&self) -> turso_core::Result<u64> {
self.file.size()
}
fn truncate(&self, len: usize, c: Arc<turso_core::Completion>) -> turso_core::Result<()> {
let _ = self.file.truncate(len, c)?;
Ok(())
fn truncate(
&self,
len: usize,
c: turso_core::Completion,
) -> turso_core::Result<turso_core::Completion> {
self.file.truncate(len, c)
}
}