Browse Source

Merge pull request #10056 from charlesxsh/fix-TestWALRestoreCorrupted

fix potential goroutine leaks at TestWALRestoreCorrupted
pull/10063/head
Ganesh Vernekar 3 years ago committed by GitHub
parent
commit
6c7577177c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tsdb/wal.go

2
tsdb/wal.go

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

Loading…
Cancel
Save