mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-29 18:38:44 +08:00
fix: Fix GetReplicas API return nil status (#33715)
issue: #33702 Signed-off-by: Wei Liu <wei.liu@zilliz.com>
This commit is contained in:
parent
ce3d7070ac
commit
935bc1fb71
@ -876,9 +876,7 @@ func (s *Server) GetReplicas(ctx context.Context, req *milvuspb.GetReplicasReque
|
||||
|
||||
replicas := s.meta.ReplicaManager.GetByCollection(req.GetCollectionID())
|
||||
if len(replicas) == 0 {
|
||||
return &milvuspb.GetReplicasResponse{
|
||||
Replicas: make([]*milvuspb.ReplicaInfo, 0),
|
||||
}, nil
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
for _, replica := range replicas {
|
||||
|
Loading…
Reference in New Issue
Block a user