diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2022-04-10 23:00:05 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-10 23:00:05 -0700 |
| commit | a87f57e47c9a39c7f431448ac1f99954a30151da (patch) | |
| tree | 0d142482d59098ffc4a481cb73d7c91803e4aff8 /weed/cluster/cluster.go | |
| parent | c6ec5269f4b34d79ab8e13050623501b8befda32 (diff) | |
| parent | 931cb9e5818b202c3855321c9b12a6149d121ffa (diff) | |
| download | seaweedfs-a87f57e47c9a39c7f431448ac1f99954a30151da.tar.xz seaweedfs-a87f57e47c9a39c7f431448ac1f99954a30151da.zip | |
Merge pull request #2868 from kmlebedev/hashicorp_raft
hashicorp raft
Diffstat (limited to 'weed/cluster/cluster.go')
| -rw-r--r-- | weed/cluster/cluster.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/weed/cluster/cluster.go b/weed/cluster/cluster.go index e8752f4d9..3cff13724 100644 --- a/weed/cluster/cluster.go +++ b/weed/cluster/cluster.go @@ -81,6 +81,15 @@ func (cluster *Cluster) AddClusterNode(nodeType string, address pb.ServerAddress }, } case MasterType: + return []*master_pb.KeepConnectedResponse{ + { + ClusterNodeUpdate: &master_pb.ClusterNodeUpdate{ + NodeType: nodeType, + Address: string(address), + IsAdd: true, + }, + }, + } } return nil } @@ -120,6 +129,15 @@ func (cluster *Cluster) RemoveClusterNode(nodeType string, address pb.ServerAddr } } case MasterType: + return []*master_pb.KeepConnectedResponse{ + { + ClusterNodeUpdate: &master_pb.ClusterNodeUpdate{ + NodeType: nodeType, + Address: string(address), + IsAdd: false, + }, + }, + } } return nil } |
