mirror of https://github.com/milvus-io/milvus.git
[skip ci]Add comment for SetCurrentRows (#9294)
Signed-off-by: sunby <bingyi.sun@zilliz.com>pull/9302/head
parent
a1f040cd97
commit
a51533de7f
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue