mirror of https://github.com/milvus-io/milvus.git
Use collInfo instead of reading again (#24784)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/24788/head
parent
223c8b24e3
commit
864c1bbcee
|
@ -384,9 +384,7 @@ func (m *MetaCache) GetPartitions(ctx context.Context, collectionName string) (m
|
|||
metrics.ProxyCacheStatsCounter.WithLabelValues(strconv.FormatInt(paramtable.GetNodeID(), 10), "GetPartitions", metrics.CacheHitLabel).Inc()
|
||||
|
||||
ret := make(map[string]typeutil.UniqueID)
|
||||
m.mu.RLock()
|
||||
defer m.mu.RUnlock()
|
||||
partInfo := m.collInfo[collectionName].partInfo
|
||||
partInfo := collInfo.partInfo
|
||||
for k, v := range partInfo {
|
||||
ret[k] = v.partitionID
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue