From 466b4e150b3c0738252c9ca942302518124071af Mon Sep 17 00:00:00 2001 From: longjiquan Date: Fri, 5 Jan 2024 11:36:27 +0800 Subject: [PATCH] set finished_ Signed-off-by: longjiquan --- internal/core/thirdparty/tantivy/tantivy-wrapper.h | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/core/thirdparty/tantivy/tantivy-wrapper.h b/internal/core/thirdparty/tantivy/tantivy-wrapper.h index 5dc3df93231ab..9577429fde1c2 100644 --- a/internal/core/thirdparty/tantivy/tantivy-wrapper.h +++ b/internal/core/thirdparty/tantivy/tantivy-wrapper.h @@ -192,6 +192,7 @@ struct TantivyIndexWrapper { tantivy_finish_index(writer_); writer_ = nullptr; reader_ = tantivy_load_index(path_.c_str()); + finished_ = true; } }