[skip ci]Add comment for SetBinlogs (#9293)

Signed-off-by: sunby <bingyi.sun@zilliz.com>
pull/9302/head
sunby 2021-10-05 22:34:49 +08:00 committed by GitHub
parent 88b4439fdf
commit a1a69a8fef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -127,6 +127,7 @@ func (s *SegmentsInfo) SetCurrentRows(segmentID UniqueID, rows int64) {
}
}
// SetBinlogs sets binlog paths for segment
func (s *SegmentsInfo) SetBinlogs(segmentID UniqueID, binlogs []*datapb.FieldBinlog) {
if segment, ok := s.segments[segmentID]; ok {
s.segments[segmentID] = segment.Clone(SetBinlogs(binlogs))