aboutsummaryrefslogtreecommitdiff
path: root/weed/mount/weedfs_file_lseek.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-12-05 20:20:44 -0800
committerchrislu <chris.lu@gmail.com>2022-12-05 20:20:44 -0800
commit4f15a52044fbbc664b0c49ca6eb3ac512c93e331 (patch)
tree32f17c5df1beab8ea2ea21b2e3d4f508a855875d /weed/mount/weedfs_file_lseek.go
parentdac9c28d05cd61402cf5fbac42507b49b5a4f7a5 (diff)
downloadseaweedfs-origin/testing.tar.xz
seaweedfs-origin/testing.zip
temp disable lockingorigin/testing
Diffstat (limited to 'weed/mount/weedfs_file_lseek.go')
-rw-r--r--weed/mount/weedfs_file_lseek.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/mount/weedfs_file_lseek.go b/weed/mount/weedfs_file_lseek.go
index 9d6402f96..81b12d42f 100644
--- a/weed/mount/weedfs_file_lseek.go
+++ b/weed/mount/weedfs_file_lseek.go
@@ -38,8 +38,8 @@ func (wfs *WFS) Lseek(cancel <-chan struct{}, in *fuse.LseekIn, out *fuse.LseekO
// lock the file until the proper offset was calculated
fh.orderedMutex.Acquire(context.Background(), 1)
defer fh.orderedMutex.Release(1)
- fh.entryLock.Lock()
- defer fh.entryLock.Unlock()
+ //fh.entryLock.Lock()
+ //defer fh.entryLock.Unlock()
fileSize := int64(filer.FileSize(fh.GetEntry()))
offset := max(int64(in.Offset), 0)