Gilad Chaplik has posted comments on this change.
Change subject: engine: avoid passing userId in User queries
......................................................................
Patch Set 2: (1 inline comment)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetAllVmsAndVmPoolsQuery.java
Line 26: }
Line 27: if (isSucceeded) {
Line 28: queryResult =
Line 29:
Backend.getInstance().runInternalQuery(VdcQueryType.GetAllVmPoolsAttachedToUser,
Line 30: new VdcQueryParametersBase());
as I wrote in the commit msg, there is no use for that.
it's better to avoid passing userId in user query.
I changed the query to use getUesrID()
Line 31: if (queryResult != null && queryResult.getSucceeded()) {
Line 32: retValList.addAll((List<VmPool>)
queryResult.getReturnValue());
Line 33: } else {
Line 34: isSucceeded = false;
--
To view, visit http://gerrit.ovirt.org/12458
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I06bec1770adbc6dce07baae8e5fc7f163b39fc52
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Gilad Chaplik <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Doron Fediuck <[email protected]>
Gerrit-Reviewer: Gilad Chaplik <[email protected]>
Gerrit-Reviewer: Michael Pasternak <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Ravi Nori <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches