Browse Source

add entry lock on file handle release

pull/4089/head
chrislu 2 years ago
parent
commit
363de28057
  1. 5
      weed/mount/filehandle.go

5
weed/mount/filehandle.go

@ -90,6 +90,11 @@ func (fh *FileHandle) CloseReader() {
}
func (fh *FileHandle) Release() {
fh.entryLock.Lock()
defer fh.entryLock.Unlock()
glog.V(4).Infof("Release %s fh %d", fh.entry.Name, fh.handle)
fh.dirtyPages.Destroy()
fh.CloseReader()
}

Loading…
Cancel
Save