Commit Graph

8 Commits

Author SHA1 Message Date
Harmen 0d550ff4b8 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 5172b21ee8 api: initial import from armon/consul-api 2015-01-06 10:40:00 -08:00
Armon Dadgar 4e3ca1a785 watch: Fixing bug with null keys 2014-08-21 17:24:20 -07:00
Armon Dadgar f82a38ab12 agent: First pass at agent-based watches 2014-08-21 13:09:13 -07:00
Armon Dadgar 47cb44683d watch: Remove DSL in place of JSON 2014-08-21 11:38:44 -07:00
Armon Dadgar d47c60daf4 watch: Set the ACL token 2014-08-20 16:45:37 -07:00
Armon Dadgar 07d36ec60a watch: test key watch 2014-08-20 15:18:08 -07:00
Armon Dadgar ffddd2b300 watch: Testing plan execution 2014-08-20 13:45:34 -07:00