未验证 提交 fa69c71d 编写于 作者: Y yah01 提交者: GitHub

Fix data race in MetaCache (#24739)

Signed-off-by: Nyah01 <yang.cen@zilliz.com>
上级 d6dea8bc
......@@ -384,6 +384,8 @@ 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
for k, v := range partInfo {
ret[k] = v.partitionID
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册