Allon Mureinik has posted comments on this change.

Change subject: userportal : Fix DiskForVmGuid high CPU
......................................................................


Patch Set 5: I would prefer that you didn't submit this

(4 inline comments)

....................................................
File 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/VdcQueryType.java
Line 271:     GetAttachedClustersByClusterPolicyId,
Line 272:     GetAllDisksPartialDataByVmId(VdcQueryAuthType.User),
Line 273:     // Default type instead of having to null check
Line 274:     Unknown(VdcQueryAuthType.User);
Line 275:     ;
please remove
Line 276: 
Line 277:     /**
Line 278:      * What kind of authorization the query requires. Although this 
is essentially a <code>boolean</code>, it's
Line 279:      * implemented as an enum for future extendability.


....................................................
File 
backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/DiskDaoDbFacadeImpl.java
Line 141:         public Disk mapRow(ResultSet rs, int rowNum) throws 
SQLException {
Line 142:             DiskImage disk = new DiskImage();
Line 143:             disk.setDiskAlias(rs.getString("disk_alias"));
Line 144:             disk.setSize(rs.getLong("size"));
Line 145:             disk.setId(new Guid((UUID) rs.getObject("disk_id")));
use getGuid(rs, "disk_id")
Line 146: 
Line 147:             return disk;
Line 148:         }
Line 149:     }


....................................................
Commit Message
Line 9: In this patch we remove the need to load all disk data and just load the
Line 10: required information for the user portal.
Line 11: 
Line 12: Bug URL: https://bugzilla.redhat.com/show_bug.cgi?id=971237
Line 13: 
Please remove the blank line - this messes up scripts.
Line 14: Change-Id: Iceb6e518936f65403561703e6b70920fbcc1f07c


....................................................
File 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/userportal/VmBasicDiskListModel.java
Line 90:                         };
Line 91:                         IdQueryParameters queryParameters = new 
IdQueryParameters(vm.getId());
Line 92:                         
queryParameters.setRefresh(getIsQueryFirstTime());
Line 93:                         
Frontend.RunQuery(VdcQueryType.GetAllDisksByVmId, queryParameters,
Line 94:                                 _asyncQuery1);
shouldn't you use the new query?
Line 95:                     }
Line 96: 
Line 97:                 }
Line 98:             };


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Iceb6e518936f65403561703e6b70920fbcc1f07c
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liran Zelkha <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Itamar Heim <[email protected]>
Gerrit-Reviewer: Liran Zelkha <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to