[skip e2e] Add comment for GetCollectionInfo of proxy meta cache (#14824)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/14854/head
congqixia 2022-01-05 14:27:42 +08:00 committed by GitHub
parent 98232b4942
commit 36a43e647d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -114,6 +114,8 @@ func (m *MetaCache) GetCollectionID(ctx context.Context, collectionName string)
return collInfo.collID, nil
}
// GetCollectionInfo returns the collection information related to provided collection name
// If the information is not found, proxy will try to fetch information for other source (RootCoord for now)
func (m *MetaCache) GetCollectionInfo(ctx context.Context, collectionName string) (*collectionInfo, error) {
m.mu.RLock()
var collInfo *collectionInfo