mirror of https://github.com/milvus-io/milvus.git
fix: [2.4] Rectify `OffsetOrderedArray` contain logic (#37309)
Cherry pick from master pr: #37305 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 <congqi.xia@zilliz.com>pull/37237/head
parent
a2a51c489e
commit
37d691f458
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue