Maor Lipchuk has posted comments on this change. Change subject: core: Fix IndexOutOfBoundsException in plug FC disk ......................................................................
Patch Set 2: (2 inline comments) Eduardo, I tend to guess why you don't like this fix, but for others to know please add a comment .................................................... File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AbstractDiskVmCommand.java Line 67: } Line 68: Line 69: /** Line 70: * Return the storage type which the Lun is related to. If the LUN has no connections we assume that it is FCP Line 71: * storage type, since FCP does not represent connections, other wise, we return the storage type of the first Done Line 72: * connection Line 73: * Line 74: * @param lun Line 75: * - The lun we set the connection at Line 74: * @param lun Line 75: * - The lun we set the connection at Line 76: * @return The storage type of the lun (ISCSI or FCP) Line 77: */ Line 78: private StorageType updateLUNConnectionsInfo(LUNs lun) { In my opinion the comment there is good enough. if you have a better name suggestion, I don't mind changing it. agreed, will add a check for it (Although in this specific case Lun connection will always not be initialized) Line 79: lun.setLunConnections(new ArrayList<storage_server_connections>(getDbFacade() Line 80: .getStorageServerConnectionDao() Line 81: .getAllForLun(lun.getLUN_id()))); Line 82: return lun.getLunConnections().isEmpty() ? StorageType.FCP : lun.getLunConnections().get(0).getstorage_type(); -- To view, visit http://gerrit.ovirt.org/9724 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I6414445b9a74be299205ff7fc9a21d1388a29687 Gerrit-PatchSet: 2 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Maor Lipchuk <mlipc...@redhat.com> Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Ayal Baron <aba...@redhat.com> Gerrit-Reviewer: Daniel Erez <de...@redhat.com> Gerrit-Reviewer: Eduardo <ewars...@redhat.com> Gerrit-Reviewer: Liron Aravot <lara...@redhat.com> Gerrit-Reviewer: Maor Lipchuk <mlipc...@redhat.com> Gerrit-Reviewer: Sharad Mishra <snmis...@linux.vnet.ibm.com> Gerrit-Reviewer: Vered Volansky <vvola...@redhat.com> Gerrit-Reviewer: liron aravot <liron.ara...@gmail.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches