[skip ci] Add comment for BuildIndex in indexcoord (#12978)

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

View File

@ -163,6 +163,7 @@ func (mt *metaTable) AddIndex(indexBuildID UniqueID, req *indexpb.BuildIndexRequ
return mt.saveIndexMeta(meta)
}
// BuildIndex set the index state to be InProgress. It means IndexNode is building the index.
func (mt *metaTable) BuildIndex(indexBuildID UniqueID, nodeID int64) error {
mt.lock.Lock()
defer mt.lock.Unlock()