Remove assert for !NO_LOCK_HELD, properly handle writing header if reset

This commit is contained in:
PThorpe92
2025-07-24 18:04:44 -04:00
committed by Jussi Saurio
parent 529cc14e29
commit 8ec99a9143
3 changed files with 110 additions and 81 deletions

View File

@@ -3,7 +3,9 @@ use crate::common::{compare_string, do_flush, TempDatabase};
use log::debug;
use std::io::{Read, Seek, Write};
use std::sync::Arc;
use turso_core::{CheckpointMode, Connection, Database, Row, Statement, StepResult, Value};
use turso_core::{
CheckpointMode, Connection, Database, LimboError, Row, Statement, StepResult, Value,
};
const WAL_HEADER_SIZE: usize = 32;
const WAL_FRAME_HEADER_SIZE: usize = 24;