mirror of https://github.com/milvus-io/milvus.git
Cherry-pick from master pr: #31850 See also #31849 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/31413/head
parent
429f0c525e
commit
958f933810
|
@ -899,7 +899,7 @@ func (s *Server) GetShardLeaders(ctx context.Context, req *querypb.GetShardLeade
|
|||
return resp, nil
|
||||
}
|
||||
collection := s.meta.CollectionManager.GetCollection(req.GetCollectionID())
|
||||
if collection.GetStatus() == querypb.LoadStatus_Loaded {
|
||||
if collection != nil && collection.GetStatus() == querypb.LoadStatus_Loaded {
|
||||
// when collection is loaded, regard collection as readable, set percentage == 100
|
||||
percentage = 100
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue