mirror of https://github.com/milvus-io/milvus.git
enhance: Remove deprecated EnableIndex (#32704)
/kind improvement Signed-off-by: bigsheeper <yihao.dai@zilliz.com>pull/32819/head
parent
641f702f64
commit
9db3aa18bc
|
@ -229,7 +229,7 @@ func (broker *CoordinatorBroker) GetIndexInfo(ctx context.Context, collectionID
|
|||
for _, info := range segmentInfo.GetIndexInfos() {
|
||||
indexes = append(indexes, &querypb.FieldIndexInfo{
|
||||
FieldID: info.GetFieldID(),
|
||||
EnableIndex: true,
|
||||
EnableIndex: true, // deprecated, but keep it for compatibility
|
||||
IndexName: info.GetIndexName(),
|
||||
IndexID: info.GetIndexID(),
|
||||
BuildID: info.GetBuildID(),
|
||||
|
|
|
@ -1075,7 +1075,6 @@ func GenAndSaveIndexV2(collectionID, partitionID, segmentID, buildID int64,
|
|||
|
||||
return &querypb.FieldIndexInfo{
|
||||
FieldID: fieldSchema.GetFieldID(),
|
||||
EnableIndex: true,
|
||||
IndexName: indexInfo.GetIndexName(),
|
||||
IndexParams: indexInfo.GetIndexParams(),
|
||||
IndexFilePaths: indexPaths,
|
||||
|
@ -1136,7 +1135,6 @@ func GenAndSaveIndex(collectionID, partitionID, segmentID, fieldID int64, msgLen
|
|||
|
||||
return &querypb.FieldIndexInfo{
|
||||
FieldID: fieldID,
|
||||
EnableIndex: true,
|
||||
IndexName: "querynode-test",
|
||||
IndexParams: funcutil.Map2KeyValuePair(indexParams),
|
||||
IndexFilePaths: indexPaths,
|
||||
|
|
|
@ -499,7 +499,7 @@ func (s *LocalSegment) ExistIndex(fieldID int64) bool {
|
|||
if !ok {
|
||||
return false
|
||||
}
|
||||
return fieldInfo.IndexInfo != nil && fieldInfo.IndexInfo.EnableIndex
|
||||
return fieldInfo.IndexInfo != nil
|
||||
}
|
||||
|
||||
func (s *LocalSegment) HasRawData(fieldID int64) bool {
|
||||
|
|
|
@ -1556,10 +1556,8 @@ func getResourceUsageEstimateOfSegment(schema *schemapb.CollectionSchema, loadIn
|
|||
|
||||
vecFieldID2IndexInfo := make(map[int64]*querypb.FieldIndexInfo)
|
||||
for _, fieldIndexInfo := range loadInfo.IndexInfos {
|
||||
if fieldIndexInfo.EnableIndex {
|
||||
fieldID := fieldIndexInfo.FieldID
|
||||
vecFieldID2IndexInfo[fieldID] = fieldIndexInfo
|
||||
}
|
||||
fieldID := fieldIndexInfo.FieldID
|
||||
vecFieldID2IndexInfo[fieldID] = fieldIndexInfo
|
||||
}
|
||||
|
||||
for _, fieldBinlog := range loadInfo.BinlogPaths {
|
||||
|
|
Loading…
Reference in New Issue