From 7b6e305d4032c4bb06a0ffdf6b756cf912418774 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Sat, 19 Oct 2013 11:51:41 -0700 Subject: [PATCH] fix update also return newValue --- store/store.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/store/store.go b/store/store.go index 008ac26d5..20cfe0c87 100644 --- a/store/store.go +++ b/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)