SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
avoid integer overflow
Chris Lubfac55e6c080
diff --git a/weed/filer/filer_remote_storage.go b/weed/filer/filer_remote_storage.goindex f096580156..99ea1d3bb9 100644--- a/weed/filer/filer_remote_storage.go+++ b/weed/filer/filer_remote_storage.go@@ -35,7 +35,9 @@ func NewFilerRemoteStorage() (rs *FilerRemoteStorage) {func (rs *FilerRemoteStorage) LoadRemoteStorageConfigurationsAndMapping(filer *Filer) (err error) {// execute this on filer- entries, _, err := filer.ListDirectoryEntries(context.Background(), DirectoryEtcRemote, "", false, math.MaxInt64, "", "", "")+ limit := int64(math.MaxInt32)++ entries, _, err := filer.ListDirectoryEntries(context.Background(), DirectoryEtcRemote, "", false, limit, "", "", "")if err != nil {if err == filer_pb.ErrNotFound {return nil