fix(log_entry.go) reports the right read size(including the length field puls a newline char)

pull/820/head
Xiang Li 2014-01-22 09:01:42 -05:00
parent 8ca39ae223
commit 083797fc39
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
}