Skip to content

Commit

Permalink
Add channel name paramter in FlushSegmentsRequest
Browse files Browse the repository at this point in the history
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
  • Loading branch information
congqixia committed Oct 16, 2023
1 parent 43f2452 commit f22bf6e
Show file tree
Hide file tree
Showing 3 changed files with 331 additions and 320 deletions.
1 change: 1 addition & 0 deletions internal/datacoord/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ func (c *Cluster) Flush(ctx context.Context, nodeID int64, channel string,
),
CollectionID: ch.CollectionID,
SegmentIDs: lo.Map(segments, getSegmentID),
ChannelName: channel,
}

c.sessionManager.Flush(ctx, nodeID, req)
Expand Down
1 change: 1 addition & 0 deletions internal/proto/data_coord.proto
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ message FlushSegmentsRequest {
int64 dbID = 2;
int64 collectionID = 3;
repeated int64 segmentIDs = 4; // segments to flush
string channelName = 5; // vchannel name to flush
}

message SegmentMsg{
Expand Down
Loading

0 comments on commit f22bf6e

Please sign in to comment.