Browse Source

fix:mount deadlock

pull/4352/head
zemul 2 years ago
parent
commit
f3287d135c
  1. 3
      weed/mount/filehandle.go

3
weed/mount/filehandle.go

@ -103,6 +103,9 @@ func (fh *FileHandle) AddChunks(chunks []*filer_pb.FileChunk) {
} }
func (fh *FileHandle) ReleaseHandle() { func (fh *FileHandle) ReleaseHandle() {
fh.Lock()
defer fh.Unlock()
fh.entryLock.Lock() fh.entryLock.Lock()
defer fh.entryLock.Unlock() defer fh.entryLock.Unlock()

Loading…
Cancel
Save