[skip ci]Add comment for saveIndexMeta in indexcoord (#12874)

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

View File

@ -90,6 +90,7 @@ func (mt *metaTable) reloadFromKV() error {
return nil
}
// saveIndexMeta saves the index meta to ETCD.
// metaTable.lock.Lock() before call this function
func (mt *metaTable) saveIndexMeta(meta *Meta) error {
value, err := proto.Marshal(meta.indexMeta)