mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Fix segments info in drop virtual channel request is not set (#17641)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
0bb415f593
commit
12b3a29db8
@ -679,6 +679,13 @@ func dropVirtualChannelFunc(dsService *dataSyncService, opts ...retry.Option) fl
|
||||
segment.StartPosition = pos.GetStartPosition()
|
||||
}
|
||||
|
||||
// assign segments to request
|
||||
segments := make([]*datapb.DropVirtualChannelSegment, 0, len(segmentPack))
|
||||
for _, segment := range segmentPack {
|
||||
segments = append(segments, segment)
|
||||
}
|
||||
req.Segments = segments
|
||||
|
||||
err := retry.Do(context.Background(), func() error {
|
||||
rsp, err := dsService.dataCoord.DropVirtualChannel(context.Background(), req)
|
||||
// should be network issue, return error and retry
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user