mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
avoid FUSE cache only for the first 512 bytes
This commit is contained in:
parent
0cb9036f66
commit
866c2657f0
|
@ -174,7 +174,7 @@ func (fh *FileHandle) Write(ctx context.Context, req *fuse.WriteRequest, resp *f
|
||||||
|
|
||||||
// write the request to volume servers
|
// write the request to volume servers
|
||||||
data := req.Data
|
data := req.Data
|
||||||
if len(data) <= 512 {
|
if len(data) <= 512 && req.Offset == 0 {
|
||||||
// fuse message cacheable size
|
// fuse message cacheable size
|
||||||
data = make([]byte, len(req.Data))
|
data = make([]byte, len(req.Data))
|
||||||
copy(data, req.Data)
|
copy(data, req.Data)
|
||||||
|
|
Loading…
Reference in a new issue