Fix wrong set of segmentLoadInfo.enableIndex (#11964)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
xige-16 2021-11-17 14:37:11 +08:00 committed by GitHub
parent d37fdf9379
commit 55d162356b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}