Browse Source

etcdserver: set -> existsSet

Blake Mizerany 11 years ago
parent
commit
2d3cef2496
1 changed files with 2 additions and 2 deletions
  1. 2 2
      etcdserver2/server.go

+ 2 - 2
etcdserver2/server.go

@@ -119,9 +119,9 @@ func (s *Server) apply(ctx context.Context, e raft.Entry) (*store.Event, error)
 	case "POST":
 		return s.st.Create(r.Path, r.Dir, r.Val, true, expr)
 	case "PUT":
-		exists, set := getBool(r.PrevExists)
+		exists, existsSet := getBool(r.PrevExists)
 		switch {
-		case set:
+		case existsSet:
 			if exists {
 				return s.st.Update(r.Path, r.Val, expr)
 			} else {