From cc794354b5c8d5262e093f7151acbf201cb7635d Mon Sep 17 00:00:00 2001 From: sunby Date: Thu, 7 Oct 2021 17:54:12 +0800 Subject: [PATCH] [skip ci]Add comment for SetRowCount (#9394) 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 18027244fb..8530b64f97 100644 --- a/internal/datacoord/segment_info.go +++ b/internal/datacoord/segment_info.go @@ -186,6 +186,7 @@ func (s *SegmentInfo) ShadowClone(opts ...SegmentInfoOption) *SegmentInfo { // SegmentInfoOption is the option to set fields in segment info type SegmentInfoOption func(segment *SegmentInfo) +// SetRowCount is the option to set row count for segment info func SetRowCount(rowCount int64) SegmentInfoOption { return func(segment *SegmentInfo) { segment.NumOfRows = rowCount