Fix leak of LMDB connection in semantic index (#17992)
Apparently, to close LMDB's file descriptors when using the `heed` library, you need to explicitly call `prepare_for_closing`. Release Notes: - N/A --------- Co-authored-by: Richard Feldman <oss@rtfeldman.com> Co-authored-by: Jason <jason@zed.dev>
This commit is contained in:
co-authored by
Richard Feldman
Jason
parent
2cd9a88f53
commit
106ca5076f
@@ -446,6 +446,15 @@ async fn run_evaluation(
|
||||
|
||||
println!("{}", serde_json::to_string(&query_results).unwrap());
|
||||
}
|
||||
|
||||
user_store
|
||||
.update(cx, |_, _| {
|
||||
drop(semantic_index);
|
||||
drop(project);
|
||||
drop(worktree);
|
||||
drop(project_index);
|
||||
})
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
eprint!(
|
||||
|
||||
Reference in New Issue
Block a user