mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-04 00:44:19 +01:00
Fix non-4096 page sizes by making WAL header lazy
This commit is contained in:
@@ -474,12 +474,6 @@ impl DatabaseFile {
|
||||
|
||||
impl turso_core::DatabaseStorage for DatabaseFile {
|
||||
fn read_header(&self, c: turso_core::Completion) -> turso_core::Result<turso_core::Completion> {
|
||||
let r = c.as_read();
|
||||
let size = r.buf().len();
|
||||
assert!(
|
||||
size == 100,
|
||||
"the size of the database header must be 100 bytes, got {size}"
|
||||
);
|
||||
self.file.pread(0, c)
|
||||
}
|
||||
fn read_page(
|
||||
|
||||
Reference in New Issue
Block a user