Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bytestream] drain any remaining data after Put returns
io.PipeWriter Write calls block until all the data written in the call is read from the corresponding io.PipeReader. If we don't read all that data, then the writing goroutine will block forever. This PipeWriter is intended to be consumed by disk.Put(), but if that returns early then there will be blocked writes. To un-block them, we can ensure that any remaining data is drained after disk.Put returns. This might fix buchgr#473
- Loading branch information