mirror of https://github.com/milvus-io/milvus.git
issue: #33702 pr: #33715 Signed-off-by: Wei Liu <wei.liu@zilliz.com>pull/34044/head
parent
fbc8fb3cb2
commit
7d1d5a838a
|
@ -840,9 +840,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