Shireesh Anjal has posted comments on this change. Change subject: engine: Adding brick order to Gluster volume bricks ......................................................................
Patch Set 5: (5 inline comments) Few comments inline. .................................................... File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/GlusterVolumeRemoveBricksCommand.java Line 144: (getParameters().getReplicaCount() == 0 || getParameters().getReplicaCount() == volume.getReplicaCount()) The || condition is not required. Just the left hand side condition should be enough. .................................................... File backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/gluster/GlusterBrickDaoDbFacadeImpl.java Line 39: .addValue("new_brick_order", oldBrick.getBrickOrder()) Since replace brick keeps order of new brick same as old brick, the parameter "new_brick_order" need not be passed to the SP. Line 101: brick.setBrickOrder(Integer.parseInt(rs.getString("brick_order"))); how about using rs.getInt() here? .................................................... File frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/AppErrors.java Line 1856: String ACTION_TYPE_FAILED_REPLICA_COUNT_MIN_4(); ACTION_TYPE_FAILED_REPLICA_COUNT_MIN_4 should be removed. Line 1860: ACTION_TYPE_FAILED_INVALID_BRICK_COUNT_FOR_DISTRIBUTED_REPLICATE should be retained. It is used in the create volume command. -- To view, visit http://gerrit.ovirt.org/4939 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I6bce4cf0b75c49b4ab20494c48a012b0bd3d55f6 Gerrit-PatchSet: 5 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Selvasundaram <sesub...@redhat.com> Gerrit-Reviewer: Dhandapani Gopal <dgo...@redhat.com> Gerrit-Reviewer: Gilad Chaplik <gchap...@redhat.com> Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com> Gerrit-Reviewer: Selvasundaram <sesub...@redhat.com> Gerrit-Reviewer: Shireesh Anjal <san...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches