浏览代码

add entry lock on file handle release

pull/4089/head
chrislu 3 年前
父节点
当前提交
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()
}

正在加载...
取消
保存