mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-17 03:24:40 -07:00
Fix for cluster info with R=1
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -2910,7 +2910,10 @@ func (mset *Stream) handleClusterSyncRequest(sub *subscription, c *client, subje
|
||||
// clusterInfo will report on the status of the raft group.
|
||||
func (s *Server) clusterInfo(n RaftNode) *ClusterInfo {
|
||||
if n == nil {
|
||||
return nil
|
||||
return &ClusterInfo{
|
||||
Name: s.ClusterName(),
|
||||
Leader: s.Name(),
|
||||
}
|
||||
}
|
||||
|
||||
ci := &ClusterInfo{
|
||||
|
||||
Reference in New Issue
Block a user