mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
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>
This commit is contained in:
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
Block a user