mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-22 20:53:32 +08:00
avoid nil
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user