Omer Frenkel has posted comments on this change. Change subject: gluster: dao changes for volume capacity info ......................................................................
Patch Set 16: Code-Review+1 (1 comment) looks ok to me, 1 concern inline http://gerrit.ovirt.org/#/c/23010/16/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/gluster/GlusterVolumeDaoDbFacadeImpl.java File backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/gluster/GlusterVolumeDaoDbFacadeImpl.java: Line 409: throws SQLException { Line 410: GlusterVolumeAdvancedDetails advancedDetails = new GlusterVolumeAdvancedDetails(); Line 411: GlusterVolumeSizeInfo capacityInfo = new GlusterVolumeSizeInfo(); Line 412: capacityInfo.setVolumeId(getGuid(rs, "volume_id")); Line 413: capacityInfo.setTotalSize(rs.getLong("total_space")); is this null safe? maybe worth adding some null entries in the fixtures file Line 414: capacityInfo.setUsedSize(rs.getLong("used_space")); Line 415: capacityInfo.setFreeSize(rs.getLong("free_space")); Line 416: advancedDetails.setUpdatedAt(rs.getDate("_update_date")); Line 417: advancedDetails.setCapacityInfo(capacityInfo); -- To view, visit http://gerrit.ovirt.org/23010 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I7d67b7ee22f4cb6839d0f14d3f27f3e22149ff22 Gerrit-PatchSet: 16 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Ramesh N <[email protected]> Gerrit-Reviewer: Eli Mesika <[email protected]> Gerrit-Reviewer: Kanagaraj M <[email protected]> Gerrit-Reviewer: Omer Frenkel <[email protected]> Gerrit-Reviewer: Ramesh N <[email protected]> Gerrit-Reviewer: Sahina Bose <[email protected]> Gerrit-Reviewer: Shubhendu Tripathi <[email protected]> Gerrit-Reviewer: Yair Zaslavsky <[email protected]> Gerrit-Reviewer: anmolbabu <[email protected]> Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
