1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-06-28 13:23:03 +02:00

filer: cache "/etc" filder small files to filer store

This commit is contained in:
Chris Lu 2020-12-07 00:11:35 -08:00
parent ac22f1dd26
commit 606051cc79

View file

@ -236,7 +236,8 @@ func (fs *FilerServer) uploadReaderToChunks(w http.ResponseWriter, r *http.Reque
break
}
}
if chunkOffset < fs.option.CacheToFilerLimit {
if chunkOffset < fs.option.CacheToFilerLimit || strings.HasPrefix(r.URL.Path, filer.DirectoryEtc) && chunkOffset < 4*1024 {
smallContent = content
}
return fileChunks, md5Hash, chunkOffset, nil, smallContent