Commit Graph

21 Commits (21860bc017f383eaf642a9c488e9a658397365bd)

Author SHA1 Message Date
Xiang Li 21860bc017 wal: cut(i uint64) -> cut 2014-09-15 10:14:18 -07:00
Yicheng Qin a9af70c52b raft: write entry 0 into log 2014-09-15 09:55:52 -07:00
Yicheng Qin 2030ca202f wal: change wal filename format
Make raftIndex section to be expected raftIndex of next entry.

It makes filename more intuitive and straight-forward.

The commit also adds comments for filename format.
2014-09-12 11:24:28 -07:00
Brandon Philips 884c702512 wal: wal.OpenFromIndex -> wal.OpenAtIndex
The first entry read from the wal should be the index provided. This
name makes that more clear.
2014-09-11 12:52:06 -07:00
Brandon Philips 24fd126822 *: stop using 0xBEEF
Using 0xBEEF is annoying in examples because it makes it makes it look
like the user can use ascii or something. In the Procfile use
0x0,0x1,0x2,etc and use 0xBAD0 in test.
2014-09-09 16:40:51 -07:00
Xiang Li 6f06923e96 wal: test save empty state 2014-09-09 10:41:15 -07:00
Jonathan Boulle 9997c9488a *: fix a few small issues identified by go vet 2014-09-08 23:52:36 -07:00
Blake Mizerany 46a7a61b7d wal: fix broken tests 2014-09-03 15:56:28 -07:00
Xiang Li bdb954b2f5 wal: fix wal 2014-09-03 15:10:15 -07:00
Yicheng Qin 442cae6844 wal: support multiple files 2014-09-03 09:20:10 -07:00
Xiang Li 659eb5fd2a wal: make record a protobuf type 2014-09-03 09:20:03 -07:00
Xiang Li 8e06333d45 raft: make State a protobuf type 2014-09-03 09:20:03 -07:00
Xiang Li d6c3ebb1a0 raft: make Info a protobuf type 2014-09-03 09:20:03 -07:00
Xiang Li 38ec659cd6 raft: make Entry a protobuf type 2014-09-03 09:20:01 -07:00
Yicheng Qin 28634fce47 wal: Flush -> Sync 2014-09-03 09:20:00 -07:00
Xiang Li a25cd45876 wal: add CoreOS copyright 2014-09-03 09:19:59 -07:00
Xiang Li 5baefcce26 wal: cleanup 2014-09-03 09:19:59 -07:00
Yicheng Qin 363e952551 wal: add Read 2014-09-03 09:19:59 -07:00
Yicheng Qin 3c7935a21d wal: check written data in tests 2014-09-03 09:19:59 -07:00
Xiang Li d1cdc02afc wal: add tests for write 2014-09-03 09:19:59 -07:00
Xiang Li 7b180d585e wal: make new work 2014-09-03 09:19:58 -07:00