Browse Source

etcdserver: Cluster.IsIDremoved -> Cluster.IsIDRemoved

Yicheng Qin 11 years ago
parent
commit
4d80f01201
2 changed files with 3 additions and 3 deletions
  1. 1 1
      etcdserver/cluster.go
  2. 2 2
      etcdserver/server.go

+ 1 - 1
etcdserver/cluster.go

@@ -153,7 +153,7 @@ func (c Cluster) MemberIDs() []uint64 {
 	return ids
 }
 
-func (c *Cluster) IsIDremoved(id uint64) bool {
+func (c *Cluster) IsIDRemoved(id uint64) bool {
 	return c.removed[id]
 }
 

+ 2 - 2
etcdserver/server.go

@@ -266,7 +266,7 @@ func (s *EtcdServer) start() {
 }
 
 func (s *EtcdServer) Process(ctx context.Context, m raftpb.Message) error {
-	if s.Cluster.IsIDremoved(m.From) {
+	if s.Cluster.IsIDRemoved(m.From) {
 		return ErrRemoved
 	}
 	return s.node.Step(ctx, m)
@@ -612,7 +612,7 @@ func (s *EtcdServer) applyConfChange(cc raftpb.ConfChange, nodes []uint64) error
 }
 
 func (s *EtcdServer) checkConfChange(cc raftpb.ConfChange, nodes []uint64) error {
-	if s.Cluster.IsIDremoved(cc.NodeID) {
+	if s.Cluster.IsIDRemoved(cc.NodeID) {
 		return ErrIDRemoved
 	}
 	switch cc.Type {