mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
Remove unused variables (#13380)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
61f2db3102
commit
322f0c5c5c
@ -369,7 +369,6 @@ func (lct *loadCollectionTask) execute(ctx context.Context) error {
|
||||
loadSegmentReqs := make([]*querypb.LoadSegmentsRequest, 0)
|
||||
watchDmChannelReqs := make([]*querypb.WatchDmChannelsRequest, 0)
|
||||
channelsToWatch := make([]string, 0)
|
||||
segmentsToLoad := make([]UniqueID, 0)
|
||||
var watchDeltaChannels []*datapb.VchannelInfo
|
||||
for _, partitionID := range toLoadPartitionIDs {
|
||||
dmChannelInfos, binlogs, err := getRecoveryInfo(lct.ctx, lct.dataCoord, collectionID, partitionID)
|
||||
@ -411,7 +410,6 @@ func (lct *loadCollectionTask) execute(ctx context.Context) error {
|
||||
CollectionID: collectionID,
|
||||
}
|
||||
|
||||
segmentsToLoad = append(segmentsToLoad, segmentID)
|
||||
loadSegmentReqs = append(loadSegmentReqs, loadSegmentReq)
|
||||
}
|
||||
|
||||
@ -737,7 +735,6 @@ func (lpt *loadPartitionTask) execute(ctx context.Context) error {
|
||||
lpt.meta.addPartition(collectionID, id)
|
||||
}
|
||||
|
||||
segmentsToLoad := make([]UniqueID, 0)
|
||||
loadSegmentReqs := make([]*querypb.LoadSegmentsRequest, 0)
|
||||
channelsToWatch := make([]string, 0)
|
||||
watchDmReqs := make([]*querypb.WatchDmChannelsRequest, 0)
|
||||
@ -781,7 +778,6 @@ func (lpt *loadPartitionTask) execute(ctx context.Context) error {
|
||||
LoadCondition: querypb.TriggerCondition_grpcRequest,
|
||||
CollectionID: collectionID,
|
||||
}
|
||||
segmentsToLoad = append(segmentsToLoad, segmentID)
|
||||
loadSegmentReqs = append(loadSegmentReqs, loadSegmentReq)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user