[skip ci]Add comment for SetFlushTime (#9295)

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

View File

@ -134,6 +134,7 @@ func (s *SegmentsInfo) SetBinlogs(segmentID UniqueID, binlogs []*datapb.FieldBin
}
}
// SetFlushTime sets flush time for segment
func (s *SegmentsInfo) SetFlushTime(segmentID UniqueID, t time.Time) {
if segment, ok := s.segments[segmentID]; ok {
s.segments[segmentID] = segment.ShadowClone(SetFlushTime(t))