[skip ci]Add comment for SetCurrentRows (#9294)

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

View File

@ -120,6 +120,7 @@ func (s *SegmentsInfo) AddAllocation(segmentID UniqueID, allocation *Allocation)
}
}
// SetCurrentRows sets rows count for segment
func (s *SegmentsInfo) SetCurrentRows(segmentID UniqueID, rows int64) {
if segment, ok := s.segments[segmentID]; ok {
s.segments[segmentID] = segment.ShadowClone(SetCurrentRows(rows))