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

Signed-off-by: sunby <bingyi.sun@zilliz.com>
pull/9509/head
sunby 2021-10-09 00:16:56 +08:00 committed by GitHub
parent 7834649dbc
commit 1e0c3cbcb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -239,6 +239,7 @@ func AddAllocation(allocation *Allocation) SegmentInfoOption {
}
}
// SetCurrentRows is the option to set current row count for segment info
func SetCurrentRows(rows int64) SegmentInfoOption {
return func(segment *SegmentInfo) {
segment.currRows = rows