mirror of https://github.com/milvus-io/milvus.git
[skip ci]Add comment for AddAllocation (#9525)
Signed-off-by: sunby <bingyi.sun@zilliz.com>pull/9509/head
parent
292aeeac63
commit
7834649dbc
|
@ -231,6 +231,7 @@ func SetAllocations(allocations []*Allocation) SegmentInfoOption {
|
|||
}
|
||||
}
|
||||
|
||||
// AddAllocation is the option to add allocation info for segment info
|
||||
func AddAllocation(allocation *Allocation) SegmentInfoOption {
|
||||
return func(segment *SegmentInfo) {
|
||||
segment.allocations = append(segment.allocations, allocation)
|
||||
|
|
Loading…
Reference in New Issue