[skip ci]Add comment for HasSameReq in indexcoord (#13344)

Signed-off-by: Cai.Zhang <cai.zhang@zilliz.com>
pull/13370/head
cai.zhang 2021-12-14 18:39:09 +08:00 committed by GitHub
parent aedb6801e8
commit 70fdee850c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -420,6 +420,7 @@ func (mt *metaTable) GetUnassignedTasks(onlineNodeIDs []int64) []Meta {
return metas
}
// HasSameReq determine whether there are same indexing tasks.
func (mt *metaTable) HasSameReq(req *indexpb.BuildIndexRequest) (bool, UniqueID) {
mt.lock.Lock()
defer mt.lock.Unlock()