Commit Graph

9121 Commits (372302bcbd61cb83a4e844c7dc29473afcc0463d)

Author SHA1 Message Date
Xiang Li 991a4e8de9 merge 2013-07-26 16:52:12 -07:00
Xiang Li 03d1ae8278 Merge pull request #86 from coreos/Initialization
change join command to interface, so application can overwrite it
2013-07-26 16:48:17 -07:00
Xiang Li bad6dd50e2 fix spelling issue 2013-07-26 16:47:51 -07:00
Xiang Li ecd1b05db6 add leaveCommand interface 2013-07-26 13:33:58 -07:00
Xiang Li e4f2c13906 change join command to interface, so application can overwrite it 2013-07-26 12:13:52 -07:00
Ben Johnson 116260912e Merge pull request #85 from coreos/Initialization
update leader name when server is follower
2013-07-25 18:26:11 -07:00
Xiang Li a0ff3aa7e5 update leader name when server is follower 2013-07-25 17:56:49 -07:00
Xiang Li f6ce9f12fb refactor 2013-07-25 17:54:08 -07:00
Xiang Li 702994ca7d update leadername 2013-07-25 17:51:03 -07:00
Xiang Li b8d1d3ac0c update leadername 2013-07-25 17:49:01 -07:00
Ben Johnson d57c1e674d Merge pull request #84 from coreos/Initialization
Initialization
2013-07-25 17:23:26 -07:00
Xiang Li 32f6bd69dc change promotable to a func 2013-07-25 16:16:06 -07:00
Xiang Li 1485b56f82 refactor 2013-07-25 15:47:35 -07:00
Xiang Li a7e01bb47a improve init process 2013-07-25 15:40:20 -07:00
Xiang Li 057351ea5c with assertion problem at server.go L567 2013-07-25 14:26:27 -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 2a55836dbe Merge branch 'addSyncAttr' 2013-07-24 17:15:20 -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
Ben Johnson b6f71abc29 Merge pull request #82 from coreos/master
write multiple entries with a buffered io
2013-07-24 11:46:49 -07:00
Xiang Li 085da0973e refactor on buffer writes 2013-07-24 11:43:33 -07:00
Xiang Li 95efaa7a0b write multiple entries with a buffered io 2013-07-24 11:03:20 -07:00
Ben Johnson 34aa0be4c1 Merge pull request #81 from coreos/fixLog
Fix log
2013-07-23 15:42:20 -07:00
Xiang Li ee35508711 delete \n in nopcommand 2013-07-23 15:31:28 -07:00
Xiang Li 487fe5874d refactor fixlog 2013-07-23 15:30:14 -07:00
Xiang Li f6d92c9d42 add comments for flushCommitIndex func 2013-07-22 15:01:32 -07:00
Xiang Li 97de42439d do not to init variable to zero 2013-07-22 14:55:05 -07:00
Xiang Li aaf304693e remove panic from log.go 2013-07-22 14:32:52 -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 59de4e7064 Fix missing SendSnapshotRecoveryRequest() implementations. 2013-07-19 08:57:46 -06:00
Ben Johnson 17941d11b1 Merge pull request #80 from coreos/newSnapshotLoop
New snapshot loop
2013-07-19 07:55:05 -07:00
Xiang Li 6b6e167d38 separate sendSnapshotRecovery logic into sendSnapshotRecoveryRequest func 2013-07-18 16:56:21 -07:00
Xiang Li e4e81010ae change func names and fix typo 2013-07-18 16:44:01 -07:00
Xiang Li 656d8bcc1a fix filename typo 2013-07-18 16:31:43 -07:00
Xiang Li 800aaa64b7 change getLogEntry to getEntry 2013-07-18 16:29:06 -07:00
Xiang Li dee43ecd60 add spanshot loop with protobuf 2013-07-18 13:39:07 -07:00
Xiang Li e3322b65d5 Merge branch 'snapshotLoop' into newSnapshotLoop 2013-07-18 10:21:03 -07:00
Ben Johnson 91e7c9fb38 Fix HTTPTransporter test. 2013-07-18 11:01:45 -06:00
Ben Johnson a055fb324d Merge branch 'master' of https://github.com/benbjohnson/go-raft 2013-07-18 10:51:20 -06:00
Ben Johnson 0e6ceabca9 Merge pull request #79 from coreos/master
fix a file name typo
2013-07-18 09:51:10 -07:00
Xiang Li 825b04bbea fix a file name typo 2013-07-18 09:47:44 -07:00
Ben Johnson a0eb460727 Update paths to 'benbjohnson'. 2013-07-18 10:41:33 -06:00
Ben Johnson 925a5afdda Merge pull request #78 from coreos/master
Change binary encoding to protobuf
2013-07-18 09:39:15 -07:00
Xiang Li 41209beb5a change binary encoding to protobuf 2013-07-18 09:26:31 -07:00
Xiang Li bcdc237b3e Merge https://github.com/coreos/go-raft 2013-07-17 14:24:31 -07:00
Ben Johnson 3008464281 Merge pull request #77 from benbjohnson/74-log-refactor
[Fix #74] Refactor to use binary log and binary RPCs.
2013-07-17 11:39:53 -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 5bfda2c28e remove nitro package 2013-07-16 18:00:16 -07:00
Xiang Li 72abfa40a7 combine two dup func 2013-07-16 17:43:12 -07:00