File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -208,10 +208,11 @@ func (r *Storage) ValidateCreate() error {
208208 }
209209
210210 minNodesPerErasure := map [ErasureType ]int32 {
211- ErasureMirror3DC : 9 ,
211+ ErasureMirror3DC : 3 ,
212212 ErasureBlock42 : 8 ,
213213 None : 1 ,
214214 }
215+
215216 if nodesNumber < minNodesPerErasure [r .Spec .Erasure ] {
216217 return fmt .Errorf ("erasure type %v requires at least %v storage nodes" , r .Spec .Erasure , minNodesPerErasure [r .Spec .Erasure ])
217218 }
@@ -305,10 +306,11 @@ func (r *Storage) ValidateUpdate(old runtime.Object) error {
305306 }
306307
307308 minNodesPerErasure := map [ErasureType ]int32 {
308- ErasureMirror3DC : 9 ,
309+ ErasureMirror3DC : 3 ,
309310 ErasureBlock42 : 8 ,
310311 None : 1 ,
311312 }
313+
312314 if nodesNumber < minNodesPerErasure [r .Spec .Erasure ] {
313315 return fmt .Errorf ("erasure type %v requires at least %v storage nodes" , r .Spec .Erasure , minNodesPerErasure [r .Spec .Erasure ])
314316 }
You can’t perform that action at this time.
0 commit comments