[skip e2e]Add comment for PeekClientV1 (#13857)

Signed-off-by: Cai.Zhang <cai.zhang@zilliz.com>
pull/13881/head
cai.zhang 2021-12-21 15:48:17 +08:00 committed by GitHub
parent 1eb5645762
commit f64a1a5bae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,8 @@ func PeekClientV0(memorySize uint64, indexParams []*commonpb.KeyValuePair,
return pq.items[0].key
}
// PeekClientV1 choose the one with the smallest amount of tasks among all IndexNodes
// whose memory size meets the requirements for building the index.
func PeekClientV1(memorySize uint64, indexParams []*commonpb.KeyValuePair,
typeParams []*commonpb.KeyValuePair, pq *PriorityQueue) UniqueID {
for i := range pq.items {