279 Commits

Author SHA1 Message Date
Xiang Li
6803d077b9 fix store pacakge pass go vet 2013-10-21 12:37:22 -07:00
Ben Johnson
23119d1672 Refactor store tests. 2013-10-20 16:09:45 -06:00
Xiang Li
61f238f22e Merge pull request #255 from xiangli-cmu/0.2-fix-devlist-issue
0.2 fix devlist issue
2013-10-20 10:29:29 -07:00
Xiang Li
b852a746ce refactor move http status logic to server.go 2013-10-20 10:21:54 -07:00
Xiang Li
acbc0c8846 refactor return http status 201 Created when creating a new node 2013-10-19 19:57:36 -07:00
Xiang Li
7b6e305d40 fix update also return newValue 2013-10-19 11:51:41 -07:00
Xiang Li
28722e2127 fix v1 handler: use create command when test against prevexistence 2013-10-16 23:57:42 -07:00
Xiang Li
0392c18794 refactor put_handler.go 2013-10-15 23:18:03 -07:00
Xiang Li
baa683b484 feat POST-create unique node under given path 2013-10-15 22:21:55 -07:00
Xiang Li
c5f9afa0e8 fix store test 2013-10-14 23:15:31 -07:00
Xiang Li
fbf40fb74a refactor store.go add set function 2013-10-14 23:04:21 -07:00
Xiang Li
278a089908 fix set should register set rather than create 2013-10-14 22:45:29 -07:00
Xiang Li
53a9bd0618 feat add set command 2013-10-14 22:44:17 -07:00
Xiang Li
9ebdcb8ae3 refactor change testAndSet to CompareAndSwap 2013-10-14 22:32:22 -07:00
Xiang Li
545f8ed6a1 fix update PUT handler 2013-10-14 22:22:23 -07:00
Xiang Li
2b6c628342 Merge branch '0.2' of https://github.com/coreos/etcd into 0.2 2013-10-14 12:57:38 -07:00
Xiang Li
c87a7a039e feat test both of the condidtion 2013-10-14 12:57:35 -07:00
Ben Johnson
e7598075ac Use raft.Server interface. 2013-10-14 13:51:20 -06:00
Ben Johnson
1321c63f3b Extract Store into an interface. 2013-10-14 11:12:30 -06:00
Xiang Li
2b291aabea Merge pull request #218 from benbjohnson/refactoring
[wip] Refactoring
2013-10-13 21:15:29 -07:00
Xiang Li
0c5808eeec fix server/server.go accept name when creating a when server; gofmt 2013-10-13 10:44:40 -07:00
Xiang Li
b0793e2dd9 refactor create do not need to check existence first 2013-10-12 21:48:29 -07:00
Ben Johnson
8670e1b7aa Refactored. 2013-10-12 15:56:43 -06:00
Ben Johnson
eb78d96a20 Intermediate commit. 2013-10-12 00:28:46 -06:00
Ben Johnson
89334df5ae Refactor commands. 2013-10-11 01:02:38 -06:00
Xiang Li
40c520ca1b refactor remove raft singleton 2013-10-10 15:40:05 -07:00
Xiang Li
4bf57537b5 refactor store.go remove extra assignment 2013-10-08 22:12:00 -07:00
Xiang Li
e597947bd8 refactor store.go update 2013-10-08 22:10:18 -07:00
Xiang Li
a030a41153 refactor store.go remove unwanted print 2013-10-08 22:01:22 -07:00
Xiang Li
75959f9948 refactor add node.ExpirationAndTTL 2013-10-08 21:49:10 -07:00
Xiang Li
c3e2332479 refactor separate kvpair to kvpair.go; simplify sorting interface 2013-10-08 21:25:56 -07:00
Xiang Li
3c7f9215d1 comments node.go 2013-10-07 23:30:51 -07:00
Xiang Li
48e6137f46 fix node.go race between expire and update 2013-10-07 23:21:39 -07:00
Xiang Li
a07802a347 refactor node.go; use once 2013-10-07 23:12:13 -07: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
Xiang Li
b8b81d5b03 feat(store) create node with incremental suffix. accept #190 in new API 2013-10-03 08:59:05 -07:00
Xiang Li
512dede9ce finish todo 2013-10-02 22:15:12 -07:00
Xiang Li
9412c86b97 fix wrong logic in event.go 2013-09-30 23:51:47 -07:00
Xiang Li
558d30f33f simplify lock 2013-09-30 23:18:52 -07:00
evan-gu
974d74befb add some comment and change a declaration form 2013-10-01 01:25:45 -04: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
6fdffbcc85 delete some debug comments in stats_test.go 2013-09-30 22:17:17 -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
3ae316ac38 add ExpireCount and some test case 2013-09-30 02:39:40 -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
4b2e53f29e minor clean up 2013-09-28 17:41:45 -07: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