filer: change to /etc/seaweedfs folder on filer

fix https://github.com/chrislusf/seaweedfs/issues/1666
This commit is contained in:
Chris Lu
2020-12-10 11:11:02 -08:00
parent 26731694f8
commit 83078ac6ce
4 changed files with 11 additions and 10 deletions

View File

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