aboutsummaryrefslogtreecommitdiff
path: root/weed/mount/filehandle_map.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-12-04 23:33:05 -0800
committerchrislu <chris.lu@gmail.com>2022-12-04 23:33:05 -0800
commit94bc9afd9d3f8e049219c1cdc9f0d6e0eb4cf456 (patch)
tree2dec30792acbe4600279d9df607d4d61677222fe /weed/mount/filehandle_map.go
parent2b783738d6d3b4b2810b4a3b3516d59a1b9edc46 (diff)
downloadseaweedfs-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.go2
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