filer: cache "/etc" filder small files to filer store
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user