diff options
| author | chrislu <chris.lu@gmail.com> | 2022-12-04 23:33:05 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-12-04 23:33:05 -0800 |
| commit | 94bc9afd9d3f8e049219c1cdc9f0d6e0eb4cf456 (patch) | |
| tree | 2dec30792acbe4600279d9df607d4d61677222fe /weed/mount/filehandle_map.go | |
| parent | 2b783738d6d3b4b2810b4a3b3516d59a1b9edc46 (diff) | |
| download | seaweedfs-94bc9afd9d3f8e049219c1cdc9f0d6e0eb4cf456.tar.xz seaweedfs-94bc9afd9d3f8e049219c1cdc9f0d6e0eb4cf456.zip | |
refactor: moved to locked entry
Diffstat (limited to 'weed/mount/filehandle_map.go')
| -rw-r--r-- | weed/mount/filehandle_map.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/mount/filehandle_map.go b/weed/mount/filehandle_map.go index 4cf674166..cc5885ffc 100644 --- a/weed/mount/filehandle_map.go +++ b/weed/mount/filehandle_map.go @@ -50,7 +50,7 @@ func (i *FileHandleToInode) AcquireFileHandle(wfs *WFS, inode uint64, entry *fil } else { fh.counter++ } - if fh.entry != entry { + if fh.GetEntry() != entry { fh.SetEntry(entry) } return fh |
