mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 06:03:38 +08:00
filer: add option to cache small files to filer store
This commit is contained in:
@@ -236,7 +236,7 @@ func (fs *FilerServer) uploadReaderToChunks(w http.ResponseWriter, r *http.Reque
|
||||
break
|
||||
}
|
||||
}
|
||||
if chunkOffset < 2048 {
|
||||
if chunkOffset < fs.option.CacheToFilerLimit {
|
||||
smallContent = content
|
||||
}
|
||||
return fileChunks, md5Hash, chunkOffset, nil, smallContent
|
||||
|
Reference in New Issue
Block a user