[skip ci]Add comment for LoadMetaFromETCD (#13343)

Signed-off-by: Cai.Zhang <cai.zhang@zilliz.com>
pull/13354/head
cai.zhang 2021-12-14 16:45:34 +08:00 committed by GitHub
parent 5f02a3738a
commit f6c17ce4b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -483,6 +483,8 @@ func (mt *metaTable) HasSameReq(req *indexpb.BuildIndexRequest) (bool, UniqueID)
return false, -1
}
// LoadMetaFromETCD load the meta of specified indexBuildID from ETCD.
// If the version of meta in memory is greater equal to the version in ETCD, no need to reload.
func (mt *metaTable) LoadMetaFromETCD(indexBuildID int64, revision int64) bool {
mt.lock.Lock()
defer mt.lock.Unlock()