summaryrefslogtreecommitdiff
path: root/vendor/github.com/klauspost/compress/zstd/decoder.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-09-10 14:04:16 -0400
committerGitHub <noreply@github.com>2020-09-10 14:04:16 -0400
commit89a348346df1f87a4cf8bc90c7f047f8ac6a074f (patch)
treedaeac876aea95914545828bfe9b4159cf07dc01d /vendor/github.com/klauspost/compress/zstd/decoder.go
parent2f0e803e7605570cd073ddffc8110a6b9d466a17 (diff)
parent98620c56d6ad0d896308a4e5858c5d1913476eaf (diff)
downloadpodman-89a348346df1f87a4cf8bc90c7f047f8ac6a074f.tar.gz
podman-89a348346df1f87a4cf8bc90c7f047f8ac6a074f.tar.bz2
podman-89a348346df1f87a4cf8bc90c7f047f8ac6a074f.zip
Merge pull request #7582 from rhatdan/VENDOR
vendor containers/storage v1.23.5
Diffstat (limited to 'vendor/github.com/klauspost/compress/zstd/decoder.go')
-rw-r--r--vendor/github.com/klauspost/compress/zstd/decoder.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/vendor/github.com/klauspost/compress/zstd/decoder.go b/vendor/github.com/klauspost/compress/zstd/decoder.go
index 66b51bf2d..d78be6d42 100644
--- a/vendor/github.com/klauspost/compress/zstd/decoder.go
+++ b/vendor/github.com/klauspost/compress/zstd/decoder.go
@@ -187,7 +187,7 @@ func (d *Decoder) Reset(r io.Reader) error {
d.current.err = err
d.current.flushed = true
if debug {
- println("sync decode to ", len(dst), "bytes, err:", err)
+ println("sync decode to", len(dst), "bytes, err:", err)
}
return nil
}
@@ -303,6 +303,9 @@ func (d *Decoder) DecodeAll(input, dst []byte) ([]byte, error) {
frame.history.reset()
err := frame.reset(&frame.bBuf)
if err == io.EOF {
+ if debug {
+ println("frame reset return EOF")
+ }
return dst, nil
}
if frame.DictionaryID != nil {
@@ -341,6 +344,9 @@ func (d *Decoder) DecodeAll(input, dst []byte) ([]byte, error) {
return dst, err
}
if len(frame.bBuf) == 0 {
+ if debug {
+ println("frame dbuf empty")
+ }
break
}
}