Browse Source

fix update also return newValue

Xiang Li 12 years ago
parent
commit
7b6e305d40
1 changed files with 2 additions and 0 deletions
  1. 2 0
      store/store.go

+ 2 - 0
store/store.go

@@ -306,6 +306,8 @@ func (s *store) Update(nodePath string, newValue string, expireTime time.Time, i
 	// update ttl
 	n.UpdateTTL(expireTime)
 
+	e.Value = newValue
+
 	e.Expiration, e.TTL = n.ExpirationAndTTL()
 
 	s.WatcherHub.notify(e)