Fix offset in search should not equal to insert barrier (#19522)

Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>

Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
pull/19537/head
aoiasd 2022-09-28 21:04:54 +08:00 committed by GitHub
parent 5405dedd2e
commit a8cabbfaa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ struct InsertRecord {
std::vector<SegOffset> res_offsets;
auto offset_iter = pk2offset_->find(pk);
for (auto offset : offset_iter) {
if (offset <= insert_barrier) {
if (offset < insert_barrier) {
res_offsets.push_back(SegOffset(offset));
}
}