Skip to content

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.

avoid nil

chrislu9265be43c061
diff --git a/weed/topology/volume_layout.go b/weed/topology/volume_layout.go
index c33d0ea0c5..a1af553fd7 100644
--- a/weed/topology/volume_layout.go
+++ b/weed/topology/volume_layout.go
@@ -551,6 +551,7 @@ func (vl *VolumeLayout) ToInfo() (info VolumeLayoutInfo) {
}
func (vl *VolumeLayout) ToGrowOption() (option *VolumeGrowOption) {
+ option = &VolumeGrowOption{}
option.ReplicaPlacement = vl.rp
option.Ttl = vl.ttl
option.DiskType = vl.diskType