Skip to content

Commit

Permalink
fix: Remove empty assert of insert_record.
Browse files Browse the repository at this point in the history
Signed-off-by: zhanghe <[email protected]>
  • Loading branch information
v1incent committed Apr 30, 2024
1 parent 5bb672d commit df27bc7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions internal/core/src/segcore/SegmentSealedImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,9 +483,11 @@ SegmentSealedImpl::LoadFieldData(FieldId field_id, FieldDataInfo& data) {
// set pks to offset
if (schema_->get_primary_field_id() == field_id) {
AssertInfo(field_id.get() != -1, "Primary key is -1");
AssertInfo(insert_record_.empty_pks(), "already exists");
insert_record_.insert_pks(data_type, column);
insert_record_.seal_pks();
// AssertInfo(insert_record_.empty_pks(), "already exists");
if (insert_record_.empty_pks()) {
insert_record_.insert_pks(data_type, column);
insert_record_.seal_pks();
}
}

bool use_temp_index = false;
Expand Down

0 comments on commit df27bc7

Please sign in to comment.