mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
don't forget the last few bytes
This commit is contained in:
parent
8d1f6cd567
commit
38626cb584
|
@ -103,9 +103,7 @@ type ChecksumReader struct {
|
|||
|
||||
func (cr *ChecksumReader) Read(p []byte) (int, error) {
|
||||
n, err := cr.r.Read(p)
|
||||
if err == nil {
|
||||
cr.h.Write(p[:n])
|
||||
}
|
||||
cr.h.Write(p[:n])
|
||||
return n, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue