From 6ce237bb01649102781683d42f7a9e0e150f1f0d Mon Sep 17 00:00:00 2001 From: luzhang Date: Tue, 17 Dec 2024 11:33:37 +0800 Subject: [PATCH] fix:remove incorrect assert for delete query Signed-off-by: luzhang --- internal/core/src/segcore/DeletedRecord.h | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/internal/core/src/segcore/DeletedRecord.h b/internal/core/src/segcore/DeletedRecord.h index d56fab5ba4de8..65384574db4f2 100644 --- a/internal/core/src/segcore/DeletedRecord.h +++ b/internal/core/src/segcore/DeletedRecord.h @@ -191,19 +191,15 @@ class DeletedRecord { auto it = start_iter; while (it != accessor.end() && it != end_iter) { - AssertInfo(it->second <= insert_barrier, - "delete record beyond insert barrier, {} : {}", - it->second, - insert_barrier); - bitset.set(it->second); + if (it->second < insert_barrier) { + bitset.set(it->second); + } it++; } while (it != accessor.end() && it->first == query_timestamp) { - AssertInfo(it->second <= insert_barrier, - "delete record beyond insert barrier, {} : {}", - it->second, - insert_barrier); - bitset.set(it->second); + if (it->second < insert_barrier) { + bitset.set(it->second); + } it++; } }