Browse Source

lock on fh.entryViewCache

pull/4089/head
chrislu 2 years ago
parent
commit
41226b54d8
  1. 2
      weed/mount/filehandle_read.go

2
weed/mount/filehandle_read.go

@ -23,6 +23,8 @@ func (fh *FileHandle) readFromDirtyPages(buff []byte, startOffset int64, tsNs in
}
func (fh *FileHandle) readFromChunks(buff []byte, offset int64) (int64, int64, error) {
fh.entryLock.Lock()
defer fh.entryLock.Unlock()
fileFullPath := fh.FullPath()

Loading…
Cancel
Save