Commit Graph

21 Commits (b3e7f49a33b95c3b11d866c9e1305cf5d7c141a5)

Author SHA1 Message Date
Ben Johnson ce3dbb5dfb Server clean up. 2013-07-06 13:41:42 -06:00
Ben Johnson 44f3ef6701 [Fix #47] Clean up external interface. 2013-07-05 22:49:47 -06:00
Xiang Li cbceb05801 add server state mutex to avoid state race condition 2013-07-05 10:44:03 -07:00
Ben Johnson 938b649b08 Minor Timer refactor. 2013-06-26 20:35:32 -06:00
Xiang Li e1fd7e46dd close debug and clean println 2013-06-26 17:21:00 -07:00
Xiang Li 0fab22808e clean up timer and change heartbeat and election to the new timer 2013-06-26 16:48:47 -07:00
Ben Johnson b80b7c5a62 Add debug mode. 2013-06-25 14:11:48 -06:00
Xiang Li 00fb080e7c add comments and gofmt 2013-06-24 09:52:51 -07:00
Xiang Li d8884cbbea change the do struct and add commit center 2013-06-23 11:42:31 -07:00
Xiang Li 5bef65699c when the leader fails in during the collecting response phase, let it step down 2013-06-13 11:03:32 -07:00
Xiang Li f294f3cb9d fix snapshot 2013-06-12 09:47:48 -07:00
Xiang Li 3b73c41286 election new leader and rejoin works 2013-06-11 15:30:13 -07:00
Xiang Li 531e12146a add timer.fire function, which can fire at the timer channel 2013-06-09 21:47:59 -07:00
Ben Johnson f9ec2ed5eb Minor cleanup. 2013-06-07 22:41:36 -04:00
Ben Johnson c544519c7c Fix timer race condition. 2013-06-03 19:16:50 -04:00
Ben Johnson 34008d93eb gofmt 2013-05-26 20:06:08 -06:00
Ben Johnson 7503eee58b Fix timer cleanup. 2013-05-26 18:02:31 -06:00
Ben Johnson 2efa6b4107 Fix command serialization issues. 2013-05-10 08:47:24 -06:00
Ben Johnson f3441b8bfb Add multi-node failure with re-election test. 2013-05-05 15:41:55 -06:00
Ben Johnson 9de292c636 Add heartbeat timer. 2013-05-05 14:26:04 -06:00
Ben Johnson d00057d4cb Refactor timer. 2013-05-05 14:01:06 -06:00