From 41b93ee7d6ac606fb01d48a44118bcd3c198e4a0 Mon Sep 17 00:00:00 2001 From: Changxin Miao Date: Wed, 17 Apr 2024 16:53:32 +0800 Subject: [PATCH] Fix panic when reading and writing s.writer concurrently (#4710) Signed-off-by: Changxin Miao Co-authored-by: Davies Liu --- pkg/vfs/writer.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/vfs/writer.go b/pkg/vfs/writer.go index 692e4ba39df6..ba7955dfa9e7 100644 --- a/pkg/vfs/writer.go +++ b/pkg/vfs/writer.go @@ -120,7 +120,6 @@ func (s *sliceWriter) flushData() { s.writer.Abort() s.err = syscall.EIO } - s.writer = nil } // protected by s.chunk.file