Closed wangsikuan closed 10 years ago
@ptsolmyr Thanks for catching that. It looks like @xiangli-cmu got a fix in.
@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.
@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.
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.