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

Signed-off-by: sunby <bingyi.sun@zilliz.com>
This commit is contained in:
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

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))