From f97ddab55eb313d1d5ccc55ca4dd37e4655afacb Mon Sep 17 00:00:00 2001 From: zemul Date: Thu, 11 May 2023 14:36:02 +0800 Subject: [PATCH] fix:deadlock --- weed/mount/filehandle.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/weed/mount/filehandle.go b/weed/mount/filehandle.go index 6513d96ba..aedaea3b2 100644 --- a/weed/mount/filehandle.go +++ b/weed/mount/filehandle.go @@ -91,9 +91,6 @@ func (fh *FileHandle) UpdateEntry(fn func(entry *filer_pb.Entry)) *filer_pb.Entr } func (fh *FileHandle) AddChunks(chunks []*filer_pb.FileChunk) { - fh.entryLock.Lock() - defer fh.entryLock.Unlock() - if fh.entry == nil { return }