mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver: set -> existsSet
This commit is contained in:
parent
78d7b38a17
commit
2d3cef2496
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user