Merge pull request #159 from goraft/fix_log_open_recovery

fix(log_entry.go) reports the right read size
pull/820/head
Ben Johnson 2014-01-22 06:04:01 -08:00
commit 639ffa394f
1 changed files with 1 additions and 1 deletions

View File

@ -95,5 +95,5 @@ func (e *LogEntry) decode(r io.Reader) (int, error) {
e.CommandName = pb.GetCommandName()
e.Command = pb.Command
return length, nil
return length + 8 + 1, nil
}