aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/filer_buckets.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/filer/filer_buckets.go')
-rw-r--r--weed/filer/filer_buckets.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer/filer_buckets.go b/weed/filer/filer_buckets.go
index 4d4f4abc3..ba170f02e 100644
--- a/weed/filer/filer_buckets.go
+++ b/weed/filer/filer_buckets.go
@@ -27,9 +27,9 @@ func (f *Filer) LoadBuckets() {
buckets: make(map[BucketName]*BucketOption),
}
- limit := math.MaxInt32
+ limit := int64(math.MaxInt32)
- entries, err := f.ListDirectoryEntries(context.Background(), util.FullPath(f.DirBucketsPath), "", false, limit, "")
+ entries, _, err := f.ListDirectoryEntries(context.Background(), util.FullPath(f.DirBucketsPath), "", false, limit, "", "")
if err != nil {
glog.V(1).Infof("no buckets found: %v", err)