Commit 60c9452
committed
Fix vds allocation
with `vds := make([]volumeDescriptor, 2)` we have
slice with two nil values, to which we later
append `vds = append(vds, vd)`, so PVD ends up to be
third element with svds appended after it.
Specs said there could be up to 127 SVDs, so,
let's allocate 0 elements with capacity 128: PVD + 127 SVDs.1 parent 414258f commit 60c9452
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
0 commit comments