From a51533de7ffe4f2f22ac4f6cc8552104ae90e89e Mon Sep 17 00:00:00 2001 From: sunby Date: Tue, 5 Oct 2021 22:28:38 +0800 Subject: [PATCH] [skip ci]Add comment for SetCurrentRows (#9294) Signed-off-by: sunby --- internal/datacoord/segment_info.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/datacoord/segment_info.go b/internal/datacoord/segment_info.go index 1b17e91098..f9f542ac63 100644 --- a/internal/datacoord/segment_info.go +++ b/internal/datacoord/segment_info.go @@ -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))