diff --git a/internal/core/src/segcore/SegmentSealedImpl.cpp b/internal/core/src/segcore/SegmentSealedImpl.cpp index b99afacbdd..c29a2fcde6 100644 --- a/internal/core/src/segcore/SegmentSealedImpl.cpp +++ b/internal/core/src/segcore/SegmentSealedImpl.cpp @@ -256,6 +256,9 @@ SegmentSealedImpl::get_deleted_bitmap(int64_t del_barrier, for (int i = 0; i < uids.size(); ++i) { bitmap->set(seg_offsets[i].get()); } + if (uids.size() == 0 || seg_offsets.size() == 0) { + return current; + } if (del_barrier < old->del_barrier) { for (auto del_index = del_barrier; del_index < old->del_barrier; ++del_index) { diff --git a/internal/core/unittest/test_index_wrapper.cpp b/internal/core/unittest/test_index_wrapper.cpp index b53593c426..70fcace043 100644 --- a/internal/core/unittest/test_index_wrapper.cpp +++ b/internal/core/unittest/test_index_wrapper.cpp @@ -203,7 +203,7 @@ print_query_result(const std::unique_ptr