mirror of https://github.com/milvus-io/milvus.git
Fix read wrong variable caused nil error (#22296)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/22257/head
parent
03eb17ad2c
commit
c8032f7e47
|
@ -651,7 +651,7 @@ func (m *MetaCache) GetShards(ctx context.Context, withCache bool, collectionNam
|
|||
|
||||
if shardLeaders != nil {
|
||||
metrics.ProxyCacheStatsCounter.WithLabelValues(strconv.FormatInt(Params.ProxyCfg.GetNodeID(), 10), method, metrics.CacheHitLabel).Inc()
|
||||
iterator := info.shardLeaders.GetReader()
|
||||
iterator := shardLeaders.GetReader()
|
||||
return iterator.Shuffle(), nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue