From e06d6d7cc651267033fb3a6d024377bc07505592 Mon Sep 17 00:00:00 2001 From: congqixia Date: Wed, 25 May 2022 15:20:00 +0800 Subject: [PATCH] Returns collection instead of copy to make leaderMutex work (#17206) Signed-off-by: Congqi Xia --- internal/proxy/meta_cache.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/internal/proxy/meta_cache.go b/internal/proxy/meta_cache.go index 4cf941efef..5c4d0a4942 100644 --- a/internal/proxy/meta_cache.go +++ b/internal/proxy/meta_cache.go @@ -216,15 +216,7 @@ func (m *MetaCache) GetCollectionInfo(ctx context.Context, collectionName string } metrics.ProxyCacheHitCounter.WithLabelValues(strconv.FormatInt(Params.ProxyCfg.GetNodeID(), 10), "GetCollectionInfo", metrics.CacheHitLabel).Inc() - return &collectionInfo{ - collID: collInfo.collID, - schema: collInfo.schema, - partInfo: collInfo.partInfo, - createdTimestamp: collInfo.createdTimestamp, - createdUtcTimestamp: collInfo.createdUtcTimestamp, - shardLeaders: collInfo.shardLeaders, - isLoaded: collInfo.isLoaded, - }, nil + return collInfo, nil } func (m *MetaCache) GetCollectionSchema(ctx context.Context, collectionName string) (*schemapb.CollectionSchema, error) {