Merge pull request #10056 from charlesxsh/fix-TestWALRestoreCorrupted

fix potential goroutine leaks at TestWALRestoreCorrupted
This commit is contained in:
Ganesh Vernekar 2021-12-21 14:54:45 +05:30 committed by GitHub
commit 6c7577177c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -190,7 +190,7 @@ func OpenSegmentWAL(dir string, logger log.Logger, flushInterval time.Duration,
flushInterval: flushInterval, flushInterval: flushInterval,
donec: make(chan struct{}), donec: make(chan struct{}),
stopc: make(chan struct{}), stopc: make(chan struct{}),
actorc: make(chan func() error, 1), actorc: make(chan func() error, 2),
segmentSize: walSegmentSizeBytes, segmentSize: walSegmentSizeBytes,
crc32: newCRC32(), crc32: newCRC32(),
} }