From b15fefa8eaf649a821c0efbb6c968438d1f62341 Mon Sep 17 00:00:00 2001 From: Jonathan Boulle Date: Wed, 24 Sep 2014 14:07:52 -0700 Subject: [PATCH] store: use nextIndex where necessary --- store/store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/store/store.go b/store/store.go index b5ffcb19d..a33d74843 100644 --- a/store/store.go +++ b/store/store.go @@ -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