Browse Source

avoid FUSE cache only for the first 512 bytes

pull/2532/head
chrislu 3 years ago
parent
commit
866c2657f0
  1. 2
      weed/filesys/filehandle.go

2
weed/filesys/filehandle.go

@ -174,7 +174,7 @@ func (fh *FileHandle) Write(ctx context.Context, req *fuse.WriteRequest, resp *f
// write the request to volume servers
data := req.Data
if len(data) <= 512 {
if len(data) <= 512 && req.Offset == 0 {
// fuse message cacheable size
data = make([]byte, len(req.Data))
copy(data, req.Data)

Loading…
Cancel
Save