Skip to content

Commit

Permalink
fix: Rectify OffsetOrderedArray contain logic
Browse files Browse the repository at this point in the history
Related to milvus-io#36887

Remove non-hit pk delete record logic does not work since
`insert_record_.contain` does not work due to logic problem.

Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia committed Oct 30, 2024
1 parent 8370caa commit 3ecb5bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/core/src/segcore/InsertRecord.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class OffsetOrderedArray : public OffsetMap {
[](const std::pair<T, int64_t>& elem,
const T& value) { return elem.first < value; });

return it != array_.end();
return it != array_.end() && it->first == target;
}

std::vector<int64_t>
Expand Down

0 comments on commit 3ecb5bd

Please sign in to comment.