未验证 提交 abbf1efa 编写于 作者: C congqixia 提交者: GitHub

[Cherry-Pick] Fix read wrong variable caused nil error (#22297)

Signed-off-by: NCongqi Xia <congqi.xia@zilliz.com>
上级 6f374fa1
......@@ -644,7 +644,7 @@ func (m *MetaCache) GetShards(ctx context.Context, withCache bool, collectionNam
info.leaderMutex.RUnlock()
if shardLeaders != nil {
iterator := info.shardLeaders.GetReader()
iterator := shardLeaders.GetReader()
return iterator.Shuffle(), nil
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册