mirror of https://github.com/milvus-io/milvus.git
[skip ci] Fix AllocationPolicy golint (#8883)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/8897/head
parent
a10f421c14
commit
1cb2e2153f
|
@ -40,9 +40,11 @@ func calBySchemaPolicy(schema *schemapb.CollectionSchema) (int, error) {
|
|||
return int(threshold / float64(sizePerRecord)), nil
|
||||
}
|
||||
|
||||
// AllocatePolicy helper function definition to allocate Segment space
|
||||
type AllocatePolicy func(segments []*SegmentInfo, count int64,
|
||||
maxCountPerSegment int64) ([]*Allocation, []*Allocation)
|
||||
|
||||
// AllocatePolicyV1 v1 policy simple allocation policy using Greedy Algorithm
|
||||
func AllocatePolicyV1(segments []*SegmentInfo, count int64,
|
||||
maxCountPerSegment int64) ([]*Allocation, []*Allocation) {
|
||||
newSegmentAllocations := make([]*Allocation, 0)
|
||||
|
|
Loading…
Reference in New Issue