Commit Graph

12 Commits

Author SHA1 Message Date
James Phillips 5f9776ac89 Merge pull request #2621 from alicebob/devwatch
reset watch's lastIndex on error
2017-06-02 09:06:02 -07:00
Frank Schroeder d7e23857ad golint: No stutter 2017-04-25 09:26:13 -07:00
Harmen d7b5f41447 reset the watch index when somehow the index goes backwards 2017-01-17 09:02:53 +01:00
Harmen 021cc2017d reset index to 0, not to 1 2017-01-17 09:02:49 +01:00
Harmen 4a13cafa98 reset watch's lastIndex on error
When a -dev agent is restarted it'll have a clean state, including a
reset index. A watch() will reconnect after a restart, but it won't
notice that the index counter has reset and it will keep waiting until
we reached the old index again, which is wrong. Resetting the index will
prevent that and makes watch work for -dev agents.
2016-12-29 21:58:46 +01:00
Ryan Uber 5555e0eb9b api: initial import from armon/consul-api 2015-01-06 10:40:00 -08:00
Armon Dadgar 94615b0b7e watch: Fixing bug with null keys 2014-08-21 17:24:20 -07:00
Armon Dadgar 4b547a43d0 agent: First pass at agent-based watches 2014-08-21 13:09:13 -07:00
Armon Dadgar ad40ddf361 watch: Remove DSL in place of JSON 2014-08-21 11:38:44 -07:00
Armon Dadgar ee4a1a960f watch: Set the ACL token 2014-08-20 16:45:37 -07:00
Armon Dadgar 68a829119e watch: test key watch 2014-08-20 15:18:08 -07:00
Armon Dadgar 66edf0075a watch: Testing plan execution 2014-08-20 13:45:34 -07:00