[skip ci]Add comment for UpdateRecycleState in indexcoord (#13173)

Signed-off-by: Cai.Zhang <cai.zhang@zilliz.com>
pull/13190/head
cai.zhang 2021-12-10 17:07:22 +08:00 committed by GitHub
parent 0b66a69f2a
commit 9a8e1be36e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -331,6 +331,8 @@ func (mt *metaTable) DeleteIndex(indexBuildID UniqueID) {
log.Debug("IndexCoord metaTable DeleteIndex", zap.Error(err))
}
// UpdateRecycleState update the recycle state corresponding the indexBuildID,
// when the recycle state is true, means the index files has been recycled with lower version.
func (mt *metaTable) UpdateRecycleState(indexBuildID UniqueID) error {
mt.lock.Lock()
defer mt.lock.Unlock()