goraft / raft

UNMAINTAINED: A Go implementation of the Raft distributed consensus protocol.
MIT License
2.43k stars 479 forks source link

When openning log file, readBytes should add the bytes of lengths of every LogEntry #158

Closed wangsikuan closed 10 years ago

wangsikuan commented 10 years ago

Now, while Log.open() try to restore the LogEntry from log file, readBytes doesn't add the size of lengths before each entry, plus 1 newline, which is 9 bytes for each entry.

benbjohnson commented 10 years ago

@ptsolmyr Thanks for catching that. It looks like @xiangli-cmu got a fix in.

xiang90 commented 10 years ago

@ptsolmyr Are you trying to annotate go-raft in Chinese? I am Chinese. So you can contact me if you need any information via emial or QQ. I am very happy to help.

wangsikuan commented 10 years ago

@xiangli-cmu Yes, I have noticed that you are Chinese, next time when I need some help on learning go-raft, I will contact you, thanks! And golang and raft are cool, thanks for your effort to make goraft better.