Add AutoChunking to the Filer API, so that you can upload really large files through the filer API.

This commit is contained in:
Mike Tolman
2016-08-05 15:19:10 -06:00
parent 87fee21ef5
commit 09059bfdcc
4 changed files with 215 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ type FilerServer struct {
disableDirListing bool
secret security.Secret
filer filer.Filer
maxMB int
masterNodes *storage.MasterNodes
}
@@ -43,6 +44,7 @@ func NewFilerServer(r *http.ServeMux, ip string, port int, master string, dir st
defaultReplication: replication,
redirectOnRead: redirectOnRead,
disableDirListing: disableDirListing,
maxMB: maxMB,
port: ip + ":" + strconv.Itoa(port),
}