server: Remove max-buckets option and now max buckets is unlimited.

minio server max-buckets option removed. min-free-disk option is
now a flag.
This commit is contained in:
Harshavardhana
2016-02-06 18:22:50 -08:00
parent e7fec22224
commit f4c8120cf9
5 changed files with 25 additions and 64 deletions

View File

@@ -29,7 +29,6 @@ import (
type Filesystem struct {
path string
minFreeDisk int64
maxBuckets int
rwLock *sync.RWMutex
multiparts *Multiparts
buckets *Buckets
@@ -59,7 +58,7 @@ type Multiparts struct {
}
// New instantiate a new donut
func New(rootPath string, minFreeDisk int64, maxBuckets int) (Filesystem, *probe.Error) {
func New(rootPath string, minFreeDisk int64) (Filesystem, *probe.Error) {
setFSBucketsMetadataPath(filepath.Join(rootPath, "$buckets.json"))
setFSMultipartsMetadataPath(filepath.Join(rootPath, "$multiparts-session.json"))
@@ -104,8 +103,6 @@ func New(rootPath string, minFreeDisk int64, maxBuckets int) (Filesystem, *probe
fs.buckets = buckets
/// Defaults
// maximum buckets to be listed from list buckets.
fs.maxBuckets = maxBuckets
// minium free disk required for i/o operations to succeed.
fs.minFreeDisk = minFreeDisk