Kanagaraj M has uploaded a new change for review.

Change subject: gluster: fix create volume brick validation
......................................................................

gluster: fix create volume brick validation

While creating a Striped-Replicated volume, the code which
validates the number of bricks is missing 'break' in a swith-case.
This is now fixed.

Change-Id: I16a5b93f687f5411c08a59804d731d7f4644b12b
Signed-off-by: Kanagaraj M <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/CreateGlusterVolumeCommand.java
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/18/20518/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/CreateGlusterVolumeCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/CreateGlusterVolumeCommand.java
index 7e10966..d34c282 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/CreateGlusterVolumeCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/CreateGlusterVolumeCommand.java
@@ -296,12 +296,13 @@
                 
addCanDoActionMessage(VdcBllMessages.ACTION_TYPE_FAILED_INVALID_BRICK_COUNT_FOR_STRIPED_REPLICATE);
                 return false;
             }
+            break;
         case DISTRIBUTED_STRIPED_REPLICATE:
             if ( brickCount <= stripeCount * replicaCount || 
Math.IEEEremainder(brickCount, stripeCount * replicaCount) != 0) {
                 
addCanDoActionMessage(VdcBllMessages.ACTION_TYPE_FAILED_INVALID_BRICK_COUNT_FOR_DISTRIBUTED_STRIPED_REPLICATE);
                 return false;
             }
-
+            break;
         default:
             break;
         }


-- 
To view, visit http://gerrit.ovirt.org/20518
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I16a5b93f687f5411c08a59804d731d7f4644b12b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Kanagaraj M <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to