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 divided by zero
Chris Luebf320ec2260
diff --git a/weed/storage/store.go b/weed/storage/store.goindex a18d87a778..92f1db2bcf 100644--- a/weed/storage/store.go+++ b/weed/storage/store.go@@ -471,6 +471,9 @@ func (s *Store) GetVolumeSizeLimit() uint64 {func (s *Store) MaybeAdjustVolumeMax() (hasChanges bool) {volumeSizeLimit := s.GetVolumeSizeLimit()+ if volumeSizeLimit == 0 {+ return+ }for _, diskLocation := range s.Locations {if diskLocation.OriginalMaxVolumeCount == 0 {currentMaxVolumeCount := diskLocation.MaxVolumeCount