mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-31 13:54:27 +01:00
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:
@@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user