From d9b969f6440f01e3d647ea007fc53506f5d9b01d Mon Sep 17 00:00:00 2001 From: abbycin Date: Sun, 21 Sep 2025 15:13:39 +0800 Subject: [PATCH] disable tmp_store in saved --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 46d39d3..08adc6d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -73,6 +73,7 @@ fn main() { opt.tmp_store = args.mode != "get"; opt.gc_timeout = 1000 * 60; // make sure GC will not work let mut saved = opt.clone(); + saved.tmp_store = false; // opt.cache_capacity = 3 << 30; // this is very important for large key-value store let mut db = Mace::new(opt.validate().unwrap()).unwrap(); @@ -100,6 +101,7 @@ fn main() { }); pre_tx.commit().unwrap(); drop(pre_tx); + log::info!("====="); drop(db); // re-open db saved.tmp_store = true;