Xiang Li
353d5f3803
mrege master
2014-01-23 08:36:56 -05:00
Xiang Li
10bd64768a
remove proto prefix
2014-01-23 08:29:50 -05:00
Xiang Li
083797fc39
fix(log_entry.go) reports the right read size(including the length field puls a newline char)
2014-01-22 09:01:42 -05:00
Xiang Li
8ce022418d
refactor do not copy entry around when doing encoding
2014-01-11 22:41:12 +08:00
Xiang Li
f6b1cc1407
import gogoproto instead of goproto
2014-01-11 20:35:09 +08:00
Xiang Li
42e4b8d3f5
remove command timeout
2013-12-30 16:58:38 +08:00
Brandon Philips
89a6c5bdd2
chore(*.go): fix imports for protobuf
...
Fix all of the imports to move from benbjohnson to goraft. Thanks to Ben
for making this move to a new github org.
2013-08-09 21:47:51 -07:00
Xiang Li
1bb97e31ad
fix log_entry.go
2013-08-02 02:40:27 -07:00
Matt T. Proud
575c297723
Simplify Protobuf Encoding by Removing Buffers
...
This commit removes the explicit Protocol Buffer coding buffer, for
goprotobuf's proto.{Marshal,Unmarshal} automatically allocate an
empty buffer, just like the original code did.
2013-08-02 10:54:29 +02:00
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