Browse Source

lock-protected setting entry

pull/2904/head
chrislu 3 years ago
parent
commit
261ba0208e
  1. 1
      weed/mount/filehandle_map.go
  2. 1
      weed/mount/weedfs_filehandle.go

1
weed/mount/filehandle_map.go

@ -49,6 +49,7 @@ func (i *FileHandleToInode) AcquireFileHandle(wfs *WFS, inode uint64, entry *fil
} else {
fh.counter++
}
fh.entry = entry
return fh
}

1
weed/mount/weedfs_filehandle.go

@ -10,7 +10,6 @@ func (wfs *WFS) AcquireHandle(inode uint64, uid, gid uint32) (fileHandle *FileHa
_, _, entry, status = wfs.maybeReadEntry(inode)
if status == fuse.OK {
fileHandle = wfs.fhmap.AcquireFileHandle(wfs, inode, entry)
fileHandle.entry = entry
}
return
}

Loading…
Cancel
Save