fix: [2.5] Return early when skip load pk index (#39763)

Cherry pick from master
pr: #39762
Previous PR #39437 only print log and add index while load operation is
still executed. This PR return early when segment decides not to load PK
index.

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/39784/head
congqixia 2025-02-11 11:04:50 +08:00 committed by GitHub
parent f542c866b3
commit c0cc8a59f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -1033,6 +1033,7 @@ func (s *LocalSegment) LoadIndex(ctx context.Context, indexInfo *querypb.FieldIn
IndexInfo: indexInfo,
IsLoaded: true,
})
return nil
}
return s.innerLoadIndex(ctx, fieldSchema, indexInfo, tr, fieldType)