Browse Source

use commandname

Xiang Li 12 years ago
parent
commit
fb9f09d240
1 changed files with 2 additions and 2 deletions
  1. 2 2
      command.go

+ 2 - 2
command.go

@@ -187,7 +187,7 @@ type RemoveCommand struct {
 
 
 // The name of the remove command in the log
 // The name of the remove command in the log
 func (c *RemoveCommand) CommandName() string {
 func (c *RemoveCommand) CommandName() string {
-	return "etcd:remove"
+	return commandName("remove")
 }
 }
 
 
 // Remove a server from the cluster
 // Remove a server from the cluster
@@ -225,7 +225,7 @@ func (c *RemoveCommand) Apply(raftServer *raft.Server) (interface{}, error) {
 
 
 			if r.joinIndex == 0 {
 			if r.joinIndex == 0 {
 				// if the node has not sent a join command in this start
 				// if the node has not sent a join command in this start
-				// it will need to send a join command after reply the logs
+				// it will need to send a join command after replay the logs
 				r.pendingJoin = true
 				r.pendingJoin = true
 			} else {
 			} else {
 				// else ignore remove
 				// else ignore remove