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:
congqixia 2024-10-30 21:16:22 +08:00 committed by GitHub
parent a2a51c489e
commit 37d691f458
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>