add mountOptions.chunkSizeLimitMB, remove cmdMount.IsDebug

This commit is contained in:
Chris Lu
2018-05-28 13:42:25 -07:00
parent 8ab7dd9d08
commit 5c4480ec6c
4 changed files with 17 additions and 8 deletions

View File

@@ -13,14 +13,16 @@ type WFS struct {
listDirectoryEntriesCache *ccache.Cache
collection string
replication string
chunkSizeLimit int64
}
func NewSeaweedFileSystem(filer string, collection string, replication string) *WFS {
func NewSeaweedFileSystem(filer string, collection string, replication string, chunkSizeLimitMB int) *WFS {
return &WFS{
filer: filer,
listDirectoryEntriesCache: ccache.New(ccache.Configure().MaxSize(6000).ItemsToPrune(100)),
collection: collection,
replication: replication,
chunkSizeLimit: int64(chunkSizeLimitMB) * 1024 * 1024,
}
}