Commit Graph

30 Commits (78cb651d93fd5c9f5406db13b6b6e5ee0c25db2a)

Author SHA1 Message Date
Xiang Li 78cb651d93 move buf to log struct 2013-08-01 17:58:03 -07:00
Xiang Li 1ff290c4a6 encode entry should reuse memory rather than alloc each time 2013-08-01 13:21:05 -07:00
Xiang Li 1485b56f82 refactor 2013-07-25 15:47:35 -07:00
Xiang Li b01e3e713e fix a logic error in log open 2013-07-24 17:21:30 -07:00
Xiang Li 7411d38154 remove printf in decode log entry 2013-07-24 17:16:30 -07:00
Xiang Li ee265c7ead do not use buffered reader, since sometimes cannot read file content out 2013-07-24 17:14:21 -07:00
Xiang Li 487fe5874d refactor fixlog 2013-07-23 15:30:14 -07:00
Xiang Li d170e3e958 add position to log_entry protobuf 2013-07-22 14:29:54 -07:00
Xiang Li d286dfdc6c write log entry to file on disk when appendEntry and truncate log file on disk when truncate log entries 2013-07-20 19:07:16 -07:00
Ben Johnson a0eb460727 Update paths to 'benbjohnson'. 2013-07-18 10:41:33 -06:00
Xiang Li 41209beb5a change binary encoding to protobuf 2013-07-18 09:26:31 -07:00
Ben Johnson e3b06c530a [Fix #74] Refactor to use binary log and binary RPCs. 2013-07-17 07:45:53 -06:00
Xiang Li d3787f60c1 when candidate stepdown it should break the loop; gofmt 2013-07-07 16:37:11 -07:00
Ben Johnson 107888aaff Pass race detector. 2013-07-07 16:12:24 -06:00
Ben Johnson 44f3ef6701 [Fix #47] Clean up external interface. 2013-07-05 22:49:47 -06:00
Ben Johnson e526ed3441 Convert LogEntry.result to interface type. 2013-06-25 14:20:53 -06:00
Ben Johnson 8f8104642d Add some padding to the entry's commit channel. 2013-06-25 14:17:42 -06:00
Xiang Li 00fb080e7c add comments and gofmt 2013-06-24 09:52:51 -07:00
Xiang Li 2bc38456cb fix issues, further cleaning is needed 2013-06-23 20:41:43 -07:00
Xiang Li 094e77f624 use heartbeat to flush the new command in do() function and keep the response result in the log entry 2013-06-08 22:39:50 -07:00
Ben Johnson 0d9f1f01ed Clean up API. 2013-06-02 22:43:40 -04:00
Ben Johnson 97fbdde521 Interface clean up. 2013-05-26 20:17:20 -06:00
Ben Johnson 2efa6b4107 Fix command serialization issues. 2013-05-10 08:47:24 -06:00
Ben Johnson f5761513bc Add log entry marshaling. 2013-05-09 21:50:57 -06:00
Ben Johnson ea99db0386 Fix log entry serialization. 2013-05-08 14:22:08 -06:00
Ben Johnson e0f86056d5 Add election timer. 2013-04-28 15:23:21 -06:00
Ben Johnson 66357ed93c Intermediate. 2013-04-27 22:51:17 -06:00
Ben Johnson c6fd17a0b0 Add log recovery. 2013-04-15 22:02:08 -06:00
Ben Johnson 2ff4241451 Log deserialization. 2013-04-15 20:47:59 -06:00
Ben Johnson 3841bb03a4 Basic log append. 2013-04-14 15:37:33 -06:00