mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-03 04:19:18 +08:00
Fix wrong set of segmentLoadInfo.enableIndex (#11964)
Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
parent
d37fdf9379
commit
55d162356b
@ -383,6 +383,7 @@ func (lct *loadCollectionTask) execute(ctx context.Context) error {
|
||||
}, lct.rootCoord, lct.indexCoord)
|
||||
|
||||
if err == nil && indexInfo.enableIndex {
|
||||
segmentLoadInfo.EnableIndex = true
|
||||
segmentLoadInfo.IndexPathInfos = indexInfo.infos
|
||||
}
|
||||
|
||||
@ -750,6 +751,7 @@ func (lpt *loadPartitionTask) execute(ctx context.Context) error {
|
||||
}, lpt.rootCoord, lpt.indexCoord)
|
||||
|
||||
if err == nil && indexInfo.enableIndex {
|
||||
segmentLoadInfo.EnableIndex = true
|
||||
segmentLoadInfo.IndexPathInfos = indexInfo.infos
|
||||
}
|
||||
|
||||
@ -1555,6 +1557,7 @@ func (ht *handoffTask) execute(ctx context.Context) error {
|
||||
BinlogPaths: segmentBinlogs.FieldBinlogs,
|
||||
NumOfRows: segmentBinlogs.NumOfRows,
|
||||
CompactionFrom: segmentInfo.CompactionFrom,
|
||||
EnableIndex: segmentInfo.EnableIndex,
|
||||
IndexPathInfos: segmentInfo.IndexPathInfos,
|
||||
}
|
||||
|
||||
@ -1741,6 +1744,7 @@ func (lbt *loadBalanceTask) execute(ctx context.Context) error {
|
||||
}, lbt.rootCoord, lbt.indexCoord)
|
||||
|
||||
if err == nil && indexInfo.enableIndex {
|
||||
segmentLoadInfo.EnableIndex = true
|
||||
segmentLoadInfo.IndexPathInfos = indexInfo.infos
|
||||
}
|
||||
|
||||
@ -1946,6 +1950,7 @@ func (lbt *loadBalanceTask) execute(ctx context.Context) error {
|
||||
}, lbt.rootCoord, lbt.indexCoord)
|
||||
|
||||
if err == nil && indexInfo.enableIndex {
|
||||
segmentLoadInfo.EnableIndex = true
|
||||
segmentLoadInfo.IndexPathInfos = indexInfo.infos
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user