Commit Graph

40 Commits (e39ad84440cd03005f6c035e001dc14d8b113a64)

Author SHA1 Message Date
Jonathan Boulle f1ed69e883 *: switch to line comments for copyright
Build tags are not compatible with block comments.
Also adds copyright header to a few places it was missing.
2015-01-26 09:53:30 -08:00
Jonathan Boulle 7a4d42166b *: add license header to all source files 2014-10-17 15:41:22 -07:00
Jonathan Boulle 1c11f6a144 *: expose etcd-index in watch requests
This adds a StartIndex field to the Watcher interface, which represents
the Etcd-Index at which the Watcher is created.

Also refactors the HTTP tests to use a table for most handleWatch tests
2014-10-02 18:10:11 -07:00
Jonathan Boulle f7444ff300 store: convert Watch to interface 2014-09-09 11:17:53 -07:00
Xiang Li b951aaf925 store: check remove func before call it 2014-09-03 09:19:50 -07:00
Cenk Alti 8bed1e1f15 fix(store/watch): fix the slow consumer bug 2014-02-14 16:52:40 -08:00
Cenk Alti c247d807af feat(stream watchers) end streaming if too many notifications 2014-01-09 14:15:36 +02:00
Xiang Li 22a25a18b3 feat(stream watchers) add stream watcher support 2014-01-09 15:28:33 +08:00
Xiang Li fa3b4a7941 refactor(watcher) change newWatcher to Watch 2014-01-09 13:29:04 +08:00
Xiang Li 5e499456f0 init cancel watcher 2013-12-26 22:06:15 +08:00
Xiang Li 5abbaf59e3 Merge pull request #292 from xiangli-cmu/fix-ttl
WIP: fix ttl
2013-11-11 21:30:32 -08:00
Xiang Li 06f1b7f2e8 refactor change Index to modifiedIndex 2013-11-09 20:49:19 -08:00
Brandon Philips 6a074d4f6f chore(*.go): add copyright notice 2013-11-08 14:04:15 -08:00
Xiang Li c307b6abca fix watcher_hub 2013-11-06 21:19:37 -08:00
Xiang Li a71838a59b refactor watcher.go 2013-10-07 22:17:58 -07:00
Xiang Li baaaf24f70 (feat) v1 apt backward support 2013-10-06 11:23:52 -07:00
evan-gu 6f591032ef rename to DupCnt, duped; add some comments, maintained some format, add notification for immediate expiration 2013-10-01 00:35:44 -04:00
evan-gu b8ac1d082b fix race between Expire() and others, fix UpdateTTL(), modified watcher to catch Expire() 2013-09-30 22:10:40 -04:00
evan-gu 0959448855 add LastIndex and LastTerm in EventHistory 2013-09-30 12:18:28 -04:00
evan-gu 35724319c9 add watcher for expiration, add expiration for TestAndSet, add related test case 2013-09-30 01:06:18 -04:00
Xiang Li 33e010ebd8 add watchHistory clone 2013-09-28 17:41:02 -07:00
Xiang Li 784d286f37 merge from master 2013-09-28 16:58:57 -07:00
Xiang Li da83ee223b clean up from yifan 2013-09-28 16:26:19 -07:00
Xiang Li 1caf2a3364 remove old store 2013-09-15 22:28:42 -04:00
Fabrizio (Misto) Milo 384d79d671 remove duplicate logic 2013-08-08 16:47:12 -07:00
Fabrizio (Misto) Milo f4fc4caf6f remove pointer to map 2013-08-08 16:47:00 -07:00
Xiang Li 8a4b2e83a5 change create->new, follow go spec 2013-08-04 17:17:40 -07:00
Xiang Li ce33c4d29f gofmt 2013-08-03 23:30:15 -07:00
Xiang Li 66f4e0aa19 clear watchers before recover from a snapshot 2013-08-03 23:29:05 -07:00
Cong Ding 9da955ca75 clean format with gofmt -w 2013-07-16 19:44:09 +02:00
Cong Ding 823691feaa remove trailing space 2013-07-16 19:40:41 +02:00
Xiang Li 1e9307e88a clean up tree.go and watcher.go 2013-07-09 13:14:12 -07:00
Xiang Li a2b44bf9b7 use map to store the results. 2013-06-30 10:09:05 -07:00
Xiang Li b9a30986bb fix checking wrong index in watcher.go 2013-06-29 22:20:18 -07:00
Xiang Li 047f8ab6a8 watch sinceindex works 2013-06-29 15:29:10 -07:00
Xiang Li c2f436a58b fix redirect after seprate client and server pot 2013-06-28 15:37:29 -07:00
Xiang Li c3bfe19ae9 fix a bug in set(update node need to create a new one, not get the pointer of the node) 2013-06-20 21:34:27 -07:00
Xiang Li ef59a03fbb gofmt 2013-06-20 15:59:23 -07:00
Xiang Li 58e7b456bb redirect the join command and do not redirect other commands (let client does that) 2013-06-20 15:26:31 -07:00
Xiang Li cc2608e9f8 add new files 2013-06-18 11:14:22 -07:00