[skip ci]Add comment for UpdateVersion in indexcoord (#12979)

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

View File

@ -206,6 +206,7 @@ func (mt *metaTable) BuildIndex(indexBuildID UniqueID, nodeID int64) error {
return nil return nil
} }
// UpdateVersion updates the version of the index meta, whenever the task is built once, the version will be updated once.
func (mt *metaTable) UpdateVersion(indexBuildID UniqueID) error { func (mt *metaTable) UpdateVersion(indexBuildID UniqueID) error {
mt.lock.Lock() mt.lock.Lock()
defer mt.lock.Unlock() defer mt.lock.Unlock()