Browse Source

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

pull/1658/head
Chris Lu 4 years ago
parent
commit
606051cc79
  1. 3
      weed/server/filer_server_handlers_write_autochunk.go

3
weed/server/filer_server_handlers_write_autochunk.go

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

Loading…
Cancel
Save