64 Commits

Author SHA1 Message Date
Xiang Li
c114ed435a Merge pull request #3 from xiangli-cmu/master
clean up tree.go
2013-07-09 09:10:39 -07:00
Xiang Li
55146c3ece clean tree struct code 2013-07-08 21:20:50 -07:00
Xiang Li
b43fba6a23 Merge pull request #2 from xiangli-cmu/master
Add testAndSet Command
2013-07-08 15:48:03 -07:00
Xiang Li
67a06ecca5 register new commands 2013-07-08 13:16:55 -07:00
Xiang Li
e37979d3ba Merge https://github.com/coreos/etcd 2013-07-08 11:04:17 -07:00
Xiang Li
dc3844a1f8 add testAndSet Command 2013-07-08 11:00:10 -07:00
polvi
cd2355ec2b Merge pull request #1 from xiangli-cmu/master
Change imports to coreos/etcd coreos/go-raft
2013-07-08 10:07:37 -07:00
Xiang Li
e2f0420862 change imports to coreos/etcd coreos/go-raft; change API to work with new go-raft 2013-07-08 09:41:04 -07:00
Xiang Li
0f22918e2b make sure leader join self as a peer 2013-07-06 22:32:08 -07:00
Xiang Li
631d24791d back to 307 2013-07-06 15:54:21 -07:00
Xiang Li
8244113a3e change 302 back to 307. 2013-07-06 10:21:39 -07:00
Xiang Li
f878399992 change redirect code for 307 to 302 to make go http client to redirect post 2013-07-05 17:36:41 -07:00
Xiang Li
93c96b3813 add list feature 2013-07-05 16:22:45 -07:00
Xiang Li
5ee976da76 Merge https://github.com/xiangli-cmu/etcd 2013-07-04 14:07:31 -07:00
Xiang Li
cc2c0ee389 Merge pull request #3 from xiangli-cmu/treeStruct
Tree struct
2013-07-04 13:52:09 -07:00
Xiang Li
b02a7d8bb4 traverse also record the key and add sorted traverse 2013-07-04 13:50:37 -07:00
Xiang Li
547ad6ee3b add func arg to traverse func 2013-07-03 15:35:25 -07:00
Xiang Li
4768b82b11 add traverse func and fix testing 2013-07-03 15:00:50 -07:00
Xiang Li
6e3379c3ef treeStruct first commit 2013-07-03 12:57:23 -07:00
Xiang Li
6edce10980 close resp body, close snapshot 2013-07-03 11:22:52 -07:00
Xiang Li
c5901f4b88 tree store init commit 2013-07-02 18:09:54 -07:00
Xiang Li
ab285a90bb using go http lib to parse post body 2013-07-01 11:16:30 -07:00
Xiang Li
f6b3d8a2af during the leader election, return error to client 2013-06-30 21:17:51 -07:00
Xiang Li
e211554b91 watch accept sinceIndex 2013-06-30 16:30:41 -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
56244a6d40 Merge pull request #2 from xiangli-cmu/addIndex
Add index
2013-06-29 15:36:11 -07:00
Xiang Li
047f8ab6a8 watch sinceindex works 2013-06-29 15:29:10 -07:00
Xiang Li
eef6f45e09 add ttl to response 2013-06-29 13:48:13 -07:00
Xiang Li
cff78e2e5e keep index in the store 2013-06-29 13:13:51 -07:00
Xiang Li
5681e1a9d0 return command index 2013-06-29 12:49:05 -07:00
Xiang Li
c2f436a58b fix redirect after seprate client and server pot 2013-06-28 15:37:29 -07:00
Xiang Li
430f5d50e3 add command line varible -i to ignore the existing configuration 2013-06-28 15:04:05 -07:00
Xiang Li
f67115b935 Allow different key,cert,CA for client and server communication 2013-06-28 14:46:05 -07:00
Xiang Li
e3d556c319 seprate client and server port 2013-06-28 14:17:16 -07:00
Xiang Li
337b1f73eb add -d option to give the directory to store the log and snapshot 2013-06-28 11:47:47 -07:00
Xiang Li
f16f7275b4 rname raftd.go to etcd.go 2013-06-28 11:33:10 -07:00
Xiang Li
df2945c521 use the origin scheme 2013-06-28 11:29:11 -07:00
Xiang Li
fcb78ed5cb use 307 to redirect client 2013-06-28 11:26:17 -07:00
Xiang Li
e91ea7be38 use xiangli-cmu/go-raft as the raft lib 2013-06-28 09:58:41 -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
1228694383 change response HTTP header to StatusServiceUnavailable when the server is not leader 2013-06-20 17:46:12 -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
30da72623f add tls fetures 2013-06-19 21:03:28 -07:00
Xiang Li
74650431e9 fix a expiration bug 2013-06-18 15:04:30 -07:00
Xiang Li
cc2608e9f8 add new files 2013-06-18 11:14:22 -07:00
Xiang Li
68884a7137 add web interface 2013-06-18 11:13:24 -07:00
Xiang Li
9ad8c85343 recovery check experiation 2013-06-16 15:51:00 -07:00
Xiang Li
e4eb808434 change command api to support expiration feature 2013-06-16 15:07:45 -07:00