clear page cache on transaction failure

This is the first step towards rollback, since we still don't spill
pages with WAL, we can simply invalidate page cache in case of failure.
This commit is contained in:
Pere Diaz Bou
2025-05-28 15:54:07 +02:00
parent 0ae46e815c
commit 28bd24b7d4
5 changed files with 18 additions and 7 deletions

View File

@@ -269,7 +269,6 @@ fn test_wal_checkpoint() -> anyhow::Result<()> {
}
do_flush(&conn, &tmp_db)?;
conn.clear_page_cache()?;
let list_query = "SELECT * FROM test LIMIT 1";
let mut current_index = 0;
run_query_on_row(&tmp_db, &conn, list_query, |row: &Row| {