diff --git a/weed/filesys/filehandle.go b/weed/filesys/filehandle.go index e25437fd3..4d4774f34 100644 --- a/weed/filesys/filehandle.go +++ b/weed/filesys/filehandle.go @@ -42,7 +42,7 @@ func newFileHandle(file *File, uid, gid uint32) *FileHandle { fh := &FileHandle{ f: file, // dirtyPages: newContinuousDirtyPages(file, writeOnly), - dirtyPages: newPageWriter(file, file.wfs.option.CacheSizeMB*1024*1024), + dirtyPages: newPageWriter(file, 2*1024*1024), Uid: uid, Gid: gid, }