Anthony Romano
f66162932c
clientv3: fix current watcher reconnection
...
If a current watcher didn't receive any events, a reconnect cycle would
advance its revision to the store's current revision. Instead, reconnect
using the watcher's creation header revision if the watcher hasn't received
any events.
Fixes #4502
2016-02-18 15:01:57 -08:00
Anthony Romano
2415303991
clientv3: typedef <-chan WatchResponse to WatchChan
2016-02-12 14:06:59 -08:00
Anthony Romano
8e411b1b3b
clientv3: send compacted revision before closing watch chan
2016-02-12 14:06:59 -08:00
Anthony Romano
ee1a03167d
storage, v3: pass compaction revision through watchresponse
2016-02-12 14:06:59 -08:00
Anthony Romano
3b7bd38a2d
clientv3: fix bad variable capture in watch request retry
...
variables would be niled out when the goroutine runs, causing a crash
2016-02-11 13:35:07 -08:00
Anthony Romano
580c563ed6
clientv3: watcher implementation
2016-02-01 23:21:55 -08:00
Xiang Li
205ffa5cb6
clientv3: initial watch API
2016-01-28 08:54:32 -08:00