24 Commits

Author SHA1 Message Date
Xiang Li
66f4e0aa19 clear watchers before recover from a snapshot 2013-08-03 23:29:05 -07:00
Xiang Li
8f551e3dc1 fix wrong error 2013-08-03 22:56:39 -07:00
Xiang Li
67b66f75e0 in this case, err should be nil. avoid dereference 2013-08-02 20:19:16 -07:00
Xiang Li
0ebd133a0d support version and basic stats 2013-08-02 12:31:35 -07:00
Cong Ding
13af54fdd0 revise log handling
All the log-related operations are calling functions in util.go. This makes
the consistancy of the logs.
2013-08-01 23:28:03 +02:00
Xiang Li
aa3f0b3a2a change 404 not found to json error 2013-07-31 20:35:14 -07:00
Xiang Li
79966b6550 Accept maxsize parameter. Deny further join request if reache max size 2013-07-31 11:05:12 -07:00
Xiang Li
612fcf120e check keywords before set/testandset 2013-07-31 10:10:00 -07:00
Xiang Li
d2382c232e not hardcode debug scheme 2013-07-20 16:29:27 -07:00
Xiang Li
58501151da change snapshot api due to the change in go-raft 2013-07-16 18:03:21 -07:00
Cong Ding
fd1d908e79 fix typos 2013-07-16 01:04:41 +02:00
Xiang Li
8309c235d9 combine set and testandset command 2013-07-14 16:19:30 -07:00
Xiang Li
268ba2592a record machine info locally via join command 2013-07-14 11:45:35 -07:00
Xiang Li
76ef446baf add machinesHttpHandler 2013-07-13 19:13:07 -07:00
Xiang Li
9dc51d0412 fix can change the value of a dir bug 2013-07-12 16:36:21 -07:00
Xiang Li
bff9321aa2 merge get and list operation 2013-07-12 16:04:00 -07:00
Xiang Li
0b6428edba add addition msg 2013-07-12 13:38:45 -07:00
Xiang Li
0aa70e125c create error map 2013-07-12 13:35:43 -07:00
Xiang Li
8fe8711d8d return json format error 2013-07-12 10:42:07 -07:00
Xiang Li
4b9b5d8069 merge get and list 2013-07-12 10:10:56 -07:00
Xiang Li
a131632d3d error handling 2013-07-12 08:41:28 -07:00
Xiang Li
45af72c941 redirect join to server port 2013-07-10 20:00:05 -07:00
Xiang Li
5271da3d19 gofmt 2013-07-09 17:31:24 -07:00
Xiang Li
a3173bfd31 sepearte raft handlers and client handlers to two files and clean up related codes 2013-07-09 17:29:47 -07:00