fix update also return newValue

This commit is contained in:
Xiang Li
2013-10-19 11:51:41 -07:00
parent a6f7069264
commit 7b6e305d40

View File

@@ -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)