aboutsummaryrefslogtreecommitdiff
path: root/weed/mount/filehandle_read.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/mount/filehandle_read.go')
-rw-r--r--weed/mount/filehandle_read.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/weed/mount/filehandle_read.go b/weed/mount/filehandle_read.go
index 78f3ff5a9..d0192e73e 100644
--- a/weed/mount/filehandle_read.go
+++ b/weed/mount/filehandle_read.go
@@ -3,10 +3,11 @@ package mount
import (
"context"
"fmt"
+ "io"
+
"github.com/seaweedfs/seaweedfs/weed/filer"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
- "io"
)
func (fh *FileHandle) lockForRead(startOffset int64, size int) {
@@ -25,9 +26,6 @@ func (fh *FileHandle) readFromChunks(buff []byte, offset int64) (int64, error) {
fileFullPath := fh.FullPath()
- fh.entryLock.Lock()
- defer fh.entryLock.Unlock()
-
entry := fh.entry
if entry == nil {
return 0, io.EOF