From f759208ae41a5bbeb163fda4b66f43b8c0e84b2b Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 21 Nov 2024 14:47:20 +0200 Subject: Revert "Refresh indexes on read or at maintenance" This reverts commit bfa8fab553eab1b0daa062010fb2ccf5d365d21f. --- log_db/tests/integration.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'log_db/tests/integration.rs') diff --git a/log_db/tests/integration.rs b/log_db/tests/integration.rs index f178738..fa81542 100644 --- a/log_db/tests/integration.rs +++ b/log_db/tests/integration.rs @@ -207,6 +207,7 @@ fn test_upsert_fails_on_invalid_value_type() { } #[test] +#[ignore] fn test_upsert_and_get_from_secondary_memtable() { let data_dir = tmp_dir(); let mut db = DB::configure() @@ -243,6 +244,10 @@ fn test_upsert_and_get_from_secondary_memtable() { ]); db.upsert(&record2).unwrap(); + // Delete the DB so that any results must come from a memtable + fs::remove_file(Path::new(&data_dir).join(ACTIVE_SYMLINK_FILENAME)) + .expect("Failed to delete the DB log file"); + // There should be 2 Johns let johns = db .find_all(&Field::Name, &Value::String("John".to_string())) -- cgit v1.3