mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
fix update also return newValue
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user