[skip ci]Add comment for AddSegmentBinlogs (#9389)

Signed-off-by: sunby <bingyi.sun@zilliz.com>
pull/9412/head
sunby 2021-10-07 18:32:50 +08:00 committed by GitHub
parent 89ecf79726
commit 21655d54be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -147,6 +147,7 @@ func (s *SegmentsInfo) SetFlushTime(segmentID UniqueID, t time.Time) {
}
}
// AddSegmentBinlogs adds binlogs for segment
func (s *SegmentsInfo) AddSegmentBinlogs(segmentID UniqueID, field2Binlogs map[UniqueID][]string) {
if segment, ok := s.segments[segmentID]; ok {
s.segments[segmentID] = segment.Clone(addSegmentBinlogs(field2Binlogs))