Commit Graph

30610 Commits (48ee7ada0423193732ed3491c0dd2d4bf7f662ef)

Author SHA1 Message Date
Fabrizio (Misto) Milo 54bd5ebbe3 use switch.(type) 2013-08-06 21:46:25 -07:00
Fabrizio (Misto) Milo a9aa0741be nip comment 2013-08-06 21:33:37 -07:00
Fabrizio (Misto) Milo 1247826c5d use switch.(type) 2013-08-06 21:32:00 -07:00
Fabrizio (Misto) Milo 6332689fe0 use switch.(type) 2013-08-06 21:29:40 -07:00
Xiang Li 0a18dcfa10 Merge pull request #101 from Mistobaan/master
add mutex
2013-08-06 21:16:43 -07:00
Fabrizio (Misto) Milo e5530c40fe add defer to guard against unexpected panics 2013-08-06 21:11:09 -07:00
Fabrizio (Misto) Milo 6fcb929318 add mutex 2013-08-06 21:02:30 -07:00
Ben Johnson d46748244f Merge pull request #99 from coreos/fixSnapshot
Fix snapshot
2013-08-06 08:19:12 -07:00
Xiang Li 5ad230d9dc should break instead of return 2013-08-06 00:02:17 -07:00
Xiang Li 28c8de8850 delete print 2013-08-05 19:35:19 -07:00
Xiang Li 11e6b1a66f when restart, compact all the log entries before snapshot. Avoid wrong startTerm 2013-08-05 19:33:07 -07:00
Ben Johnson c75ee472cb Merge pull request #96 from coreos/fixSnapshot
init fix
2013-08-05 10:24:48 -07:00
Xiang Li 9a987d9892 Merge pull request #97 from benbjohnson/remove-timer
Remove timer.
2013-08-05 10:21:30 -07:00
Ben Johnson 31817cf004 Remove timer. 2013-08-05 11:18:05 -06:00
Xiang Li 31db0ff136 init fix 2013-08-02 19:00:11 -07:00
Ben Johnson 29ebf5c0f5 Merge pull request #95 from coreos/master
avoid deadlock
2013-08-02 09:09:53 -07:00
Xiang Li 75c9644bbc avoid deadlock 2013-08-02 09:03:23 -07:00
Ben Johnson 085eed6569 Merge pull request #94 from coreos/master
should not close request body
2013-08-02 08:20:08 -07:00
Ben Johnson ec2680d020 Add Travis CI Badge 2013-08-02 09:17:50 -06:00
Xiang Li 8865839357 should not close request body 2013-08-02 07:59:16 -07:00
Ben Johnson 403140b49a Merge pull request #91 from matttproud/feature/testing/continuous-integration
Add Travis CI tests for go-raft.
2013-08-02 07:52:53 -07:00
Xiang Li 6043edf062 Merge pull request #93 from coreos/master
sleep time should not be hardcoded
2013-08-02 03:04:32 -07:00
Xiang Li ce49c7add9 sleep time should not be hardcoded 2013-08-02 03:03:55 -07:00
Xiang Li f60cf3a74f sleep time should not be hardcoded 2013-08-02 03:01:06 -07:00
Xiang Li bb426c5991 Merge pull request #92 from coreos/master
fix log_entry.go
2013-08-02 02:41:05 -07:00
Xiang Li 1bb97e31ad fix log_entry.go 2013-08-02 02:40:27 -07:00
Xiang Li 6ca0964179 Merge pull request #90 from matttproud/refactor/coding/simplification
Simplify Protobuf Encoding by Removing Extraneous Buffers
2013-08-02 02:36:07 -07:00
Matt T. Proud df7b48cee7 Add Travis CI tests for go-raft.
In playing around with the code in go-raft, I noticed that a number
of the tests are non-deterministic.  I figure Travis CI integration
will help illuminate changes that introduce regressions against
test health.
2013-08-02 11:26:12 +02: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
Matt T. Proud d54972c427 Perfunctory gofmt -w -s=true. 2013-08-02 10:54:29 +02:00
Ben Johnson 0be5a48b52 Merge pull request #88 from coreos/master
encode entry should reuse memory rather than alloc each time
2013-08-01 19:41:47 -07:00
Xiang Li f5d89d0b76 bench 2013-08-01 18:57:08 -07:00
Xiang Li ce95c8ba67 remove unwanted codes 2013-08-01 18:00:10 -07: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 1352897623 change debug prefix from raft to [raft] 2013-07-28 20:19:02 -07:00
Xiang Li 59333b0430 Merge pull request #87 from coreos/master
expose loglevel api to application
2013-07-28 15:32:58 -07:00
Xiang Li 1f39a46046 fix error in setLogLevel 2013-07-28 15:31:25 -07:00
Xiang Li 4771080625 expose loglevel api to application 2013-07-27 21:49:17 -07:00
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