Skip to content

Commit

Permalink
Disable NoMergePolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
naaive committed Apr 7, 2022
1 parent 55d5bcf commit 7bf9846
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src-tauri/src/idx_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,6 @@ impl IdxStore {
let writer = Arc::new(Mutex::new(
index.writer_with_num_threads(2, 140_000_000).unwrap(),
));
writer
.lock()
.unwrap()
.set_merge_policy(Box::new(NoMergePolicy::default()));
let writer_bro = writer.clone();
std::thread::spawn(move || loop {
let _ = writer_bro.lock().unwrap().commit();
Expand Down

0 comments on commit 7bf9846

Please sign in to comment.