diff options
| author | chrislu <chris.lu@gmail.com> | 2022-12-05 20:20:44 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-12-05 20:20:44 -0800 |
| commit | 4f15a52044fbbc664b0c49ca6eb3ac512c93e331 (patch) | |
| tree | 32f17c5df1beab8ea2ea21b2e3d4f508a855875d /weed/mount/weedfs_dir_lookup.go | |
| parent | dac9c28d05cd61402cf5fbac42507b49b5a4f7a5 (diff) | |
| download | seaweedfs-origin/testing.tar.xz seaweedfs-origin/testing.zip | |
temp disable lockingorigin/testing
Diffstat (limited to 'weed/mount/weedfs_dir_lookup.go')
| -rw-r--r-- | weed/mount/weedfs_dir_lookup.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/mount/weedfs_dir_lookup.go b/weed/mount/weedfs_dir_lookup.go index 2d3ea8ae5..ad4e88110 100644 --- a/weed/mount/weedfs_dir_lookup.go +++ b/weed/mount/weedfs_dir_lookup.go @@ -58,12 +58,12 @@ func (wfs *WFS) Lookup(cancel <-chan struct{}, header *fuse.InHeader, name strin inode := wfs.inodeToPath.Lookup(fullFilePath, localEntry.Crtime.Unix(), localEntry.IsDirectory(), len(localEntry.HardLinkId) > 0, localEntry.Inode, true) if fh, found := wfs.fhmap.FindFileHandle(inode); found { - fh.entryLock.Lock() + //fh.entryLock.Lock() if entry := fh.GetEntry(); entry != nil { glog.V(4).Infof("lookup opened file %s size %d", dirPath.Child(localEntry.Name()), filer.FileSize(entry)) localEntry = filer.FromPbEntry(string(dirPath), entry) } - fh.entryLock.Unlock() + //fh.entryLock.Unlock() } wfs.outputFilerEntry(out, inode, localEntry) |
