Skip to content

Commit

Permalink
fix finish
Browse files Browse the repository at this point in the history
Signed-off-by: sunby <[email protected]>
  • Loading branch information
sunby committed Dec 20, 2024
1 parent e4473b6 commit 4b963f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/core/thirdparty/tantivy/tantivy-wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,8 @@ struct TantivyIndexWrapper {
AssertInfo(res.result_->success,
"failed to finish index: {}",
res.result_->error);

tantivy_free_index_writer(writer_);
writer_ = nullptr;
finished_ = true;
}
Expand Down

0 comments on commit 4b963f9

Please sign in to comment.