mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-03 10:37:35 +01:00
Fix race conditions during in-flight size checks (#3505)
This commit is contained in:
1 parent
7b424a54dc
commit
2930263dfd
3 files changed
+22
-13
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user