From 2124cc41c0403e908f5fd0a127feda483ca18d78 Mon Sep 17 00:00:00 2001 From: alpaylan Date: Sun, 6 Jul 2025 14:51:20 -0400 Subject: [PATCH] enable indexes --- simulator/generation/plan.rs | 2 +- simulator/runner/env.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/simulator/generation/plan.rs b/simulator/generation/plan.rs index 6281c91d1..b78c89deb 100644 --- a/simulator/generation/plan.rs +++ b/simulator/generation/plan.rs @@ -703,7 +703,7 @@ fn reopen_database(env: &mut SimulatorEnv) { // 2. Re-open database let db_path = env.db_path.clone(); - let db = match turso_core::Database::open_file(env.io.clone(), &db_path, false, false) { + let db = match turso_core::Database::open_file(env.io.clone(), &db_path, false, true) { Ok(db) => db, Err(e) => { panic!("error opening simulator test file {:?}: {:?}", db_path, e); diff --git a/simulator/runner/env.rs b/simulator/runner/env.rs index 1edbcb701..0a0d8b184 100644 --- a/simulator/runner/env.rs +++ b/simulator/runner/env.rs @@ -139,7 +139,7 @@ impl SimulatorEnv { std::fs::remove_file(wal_path).unwrap(); } - let db = match Database::open_file(io.clone(), db_path.to_str().unwrap(), false, false) { + let db = match Database::open_file(io.clone(), db_path.to_str().unwrap(), false, true) { Ok(db) => db, Err(e) => { panic!("error opening simulator test file {:?}: {:?}", db_path, e);