mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 00:53:36 +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) {
|
func (vl *VolumeLayout) ToGrowOption() (option *VolumeGrowOption) {
|
||||||
|
option = &VolumeGrowOption{}
|
||||||
option.ReplicaPlacement = vl.rp
|
option.ReplicaPlacement = vl.rp
|
||||||
option.Ttl = vl.ttl
|
option.Ttl = vl.ttl
|
||||||
option.DiskType = vl.diskType
|
option.DiskType = vl.diskType
|
||||||
|
Reference in New Issue
Block a user