Fix race conditions during in-flight size checks (#3505)

This commit is contained in:
Patrick Schmidt authored and GitHub committed 2022-08-24 20:03:34 -07:00
1 parent 7b424a54dc
commit 2930263dfd
3 files changed
+22 -13

No files matched your search

+1 -1
View File
@@ -186,8 +186,8 @@ func (s *SingleChunkCacher) destroy() {
if s.data != nil {
mem.Free(s.data)
s.data = nil
close(s.cacheStartedCh)
}
close(s.cacheStartedCh)
}
func (s *SingleChunkCacher) readChunkAt(buf []byte, offset int64) (int, error) {