diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-09-07 09:49:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-07 09:49:56 -0400 |
commit | d83e94a5146f0d5d8da39bea5ab4d3e497473c6f (patch) | |
tree | 6054bb84d6f2cbd62621cd1b3ee52178b11d1825 /vendor/github.com/klauspost | |
parent | 15375b549f5f86e773904ce4cf97fdcf1d5dcbb8 (diff) | |
parent | b62fa769f8f5ccc982a2566b4c4af0b7096298f3 (diff) | |
download | podman-d83e94a5146f0d5d8da39bea5ab4d3e497473c6f.tar.gz podman-d83e94a5146f0d5d8da39bea5ab4d3e497473c6f.tar.bz2 podman-d83e94a5146f0d5d8da39bea5ab4d3e497473c6f.zip |
Merge pull request #7539 from containers/dependabot/go_modules/github.com/containers/storage-1.23.4
Bump github.com/containers/storage from 1.23.2 to 1.23.4
Diffstat (limited to 'vendor/github.com/klauspost')
-rw-r--r-- | vendor/github.com/klauspost/pgzip/.travis.yml | 17 | ||||
-rw-r--r-- | vendor/github.com/klauspost/pgzip/gunzip.go | 11 |
2 files changed, 21 insertions, 7 deletions
diff --git a/vendor/github.com/klauspost/pgzip/.travis.yml b/vendor/github.com/klauspost/pgzip/.travis.yml index 6e9fca0ba..acfec4bb0 100644 --- a/vendor/github.com/klauspost/pgzip/.travis.yml +++ b/vendor/github.com/klauspost/pgzip/.travis.yml @@ -1,19 +1,22 @@ language: go -sudo: false - os: - linux - osx go: - - 1.9.x - - 1.10.x + - 1.13.x + - 1.14.x + - 1.15.x - master -script: - - go test -v -cpu=1,2,4 . - - go test -v -cpu=2 -race -short . +env: + - GO111MODULE=off + +script: + - diff <(gofmt -d .) <(printf "") + - go test -v -cpu=1,2,4 . + - go test -v -cpu=2 -race -short . matrix: allow_failures: diff --git a/vendor/github.com/klauspost/pgzip/gunzip.go b/vendor/github.com/klauspost/pgzip/gunzip.go index 93efec714..d1ae730b2 100644 --- a/vendor/github.com/klauspost/pgzip/gunzip.go +++ b/vendor/github.com/klauspost/pgzip/gunzip.go @@ -331,6 +331,16 @@ func (z *Reader) killReadAhead() error { // Wait for decompressor to be closed and return error, if any. e, ok := <-z.closeErr z.activeRA = false + + for blk := range z.readAhead { + if blk.b != nil { + z.blockPool <- blk.b + } + } + if cap(z.current) > 0 { + z.blockPool <- z.current + z.current = nil + } if !ok { // Channel is closed, so if there was any error it has already been returned. return nil @@ -418,6 +428,7 @@ func (z *Reader) doReadAhead() { case z.readAhead <- read{b: buf, err: err}: case <-closeReader: // Sent on close, we don't care about the next results + z.blockPool <- buf return } if err != nil { |