Skip to content

Commit

Permalink
[HOTFIX] applying PR #3431 to release/2025-01-03 (#3434)
Browse files Browse the repository at this point in the history
This PR cherry-picks the commit 75aeb81
onto release/2025-01-03. If there are unresolved conflicts, please
resolve them manually.

Co-authored-by: Evan Culver <eculver@users.noreply.github.com>
  • Loading branch information
chroma-droid and eculver authored Jan 8, 2025
1 parent 4948e0a commit fae116b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/worker/src/segment/distributed_hnsw_segment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ impl SegmentWriter for DistributedHNSWSegmentWriter {
let embedding = record.merged_embeddings_ref();

let mut index = self.index.inner.upgradable_read();
let index_len = index.len();
let index_len = index.len_with_deleted();
let index_capacity = index.capacity();
if index_len + 1 > index_capacity {
index.with_upgraded(|index| {
Expand Down

0 comments on commit fae116b

Please sign in to comment.