1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-09-16 14:00:42 +02:00

avoid nil

This commit is contained in:
chrislu 2024-07-21 21:01:29 -07:00
parent 4020149690
commit 9265be43c0

View file

@ -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