Skip to content

Commit

Permalink
fix: Rectify OffsetOrderedArray contain logic (#37305)
Browse files Browse the repository at this point in the history
Related to #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 authored Oct 30, 2024
1 parent 3a34046 commit 7961568
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 @@ -179,7 +179,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 7961568

Please sign in to comment.