mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
store: use nextIndex where necessary
This commit is contained in:
parent
ec1df42d04
commit
b15fefa8ea
@ -275,7 +275,7 @@ func (s *store) Delete(nodePath string, dir, recursive bool) (*Event, error) {
|
||||
|
||||
nextIndex := s.CurrentIndex + 1
|
||||
e := newEvent(Delete, nodePath, nextIndex, n.CreatedIndex)
|
||||
e.EtcdIndex = s.CurrentIndex
|
||||
e.EtcdIndex = nextIndex
|
||||
e.PrevNode = n.Repr(false, false)
|
||||
eNode := e.Node
|
||||
|
||||
@ -414,7 +414,7 @@ func (s *store) Update(nodePath string, newValue string, expireTime time.Time) (
|
||||
}
|
||||
|
||||
e := newEvent(Update, nodePath, nextIndex, n.CreatedIndex)
|
||||
e.EtcdIndex = s.CurrentIndex
|
||||
e.EtcdIndex = nextIndex
|
||||
e.PrevNode = n.Repr(false, false)
|
||||
eNode := e.Node
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user