From 18ae6e26b3bb976bf3a1bc5da9cdca51f2948f17 Mon Sep 17 00:00:00 2001 From: fdb-hiroshima <35889323+fdb-hiroshima@users.noreply.github.com> Date: Mon, 29 Apr 2019 19:08:32 +0200 Subject: [PATCH] remove the new index lock tantivy uses (#556) --- plume-cli/src/search.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plume-cli/src/search.rs b/plume-cli/src/search.rs index 023522ed..4eadd8e7 100644 --- a/plume-cli/src/search.rs +++ b/plume-cli/src/search.rs @@ -104,7 +104,8 @@ fn refill<'a>(args: &ArgMatches<'a>, conn: &Connection, searcher: Option(args: &ArgMatches<'a>) { let path = args.value_of("path").unwrap_or("."); - let path = Path::new(path).join("search_index/.tantivy-indexer.lock"); - - remove_file(path).unwrap(); + let meta = Path::new(path).join("search_index/.tantivy-meta.lock"); + remove_file(meta).unwrap(); + let writer = Path::new(path).join("search_index/.tantivy-writer.lock"); + remove_file(writer).unwrap(); }