cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mc...@apache.org
Subject [35/43] git commit: Remove duplicate systemUse clausule when fetching service offerings.
Date Tue, 15 Jan 2013 23:55:10 GMT
Remove duplicate systemUse clausule when fetching service offerings.

A couple of lines back there is:

        if (isSystem != null) {
            sc.addAnd("systemUse", SearchCriteria.Op.EQ, isSystem);
        }

So it was set redundantly, this can be removed.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/510450b1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/510450b1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/510450b1

Branch: refs/heads/api_limit
Commit: 510450b11b611fb0112771ae56586fcbed70ecc6
Parents: 0412cb8
Author: Wido den Hollander <wido@widodh.nl>
Authored: Tue Jan 15 12:14:57 2013 +0100
Committer: Wido den Hollander <wido@widodh.nl>
Committed: Tue Jan 15 12:14:57 2013 +0100

----------------------------------------------------------------------
 .../src/com/cloud/server/ManagementServerImpl.java |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/510450b1/server/src/com/cloud/server/ManagementServerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/server/ManagementServerImpl.java b/server/src/com/cloud/server/ManagementServerImpl.java
index bf10550..4efae63 100755
--- a/server/src/com/cloud/server/ManagementServerImpl.java
+++ b/server/src/com/cloud/server/ManagementServerImpl.java
@@ -760,7 +760,6 @@ public class ManagementServerImpl implements ManagementServer {
             sc.addAnd("vm_type", SearchCriteria.Op.EQ, vmTypeStr);
         }
 
-        sc.addAnd("systemUse", SearchCriteria.Op.EQ, isSystem);
         sc.addAnd("removed", SearchCriteria.Op.NULL);
         return _offeringsDao.search(sc, searchFilter);
 


Mime
View raw message