cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kelv...@apache.org
Subject [08/27] git commit: updated refs/heads/master to ae23144
Date Wed, 04 Sep 2013 22:42:17 GMT
More fixes found in test cases when JVM assertion check is turned on


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

Branch: refs/heads/master
Commit: 458de9321d5399fe073ac7c6568c9c1896c349aa
Parents: f383656
Author: Kelven Yang <kelveny@gmail.com>
Authored: Wed Jul 31 17:58:15 2013 -0700
Committer: Kelven Yang <kelveny@gmail.com>
Committed: Wed Sep 4 14:49:45 2013 -0700

----------------------------------------------------------------------
 engine/schema/src/com/cloud/host/dao/HostDaoImpl.java | 2 +-
 engine/schema/src/com/cloud/vm/dao/NicDaoImpl.java    | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/458de932/engine/schema/src/com/cloud/host/dao/HostDaoImpl.java
----------------------------------------------------------------------
diff --git a/engine/schema/src/com/cloud/host/dao/HostDaoImpl.java b/engine/schema/src/com/cloud/host/dao/HostDaoImpl.java
index 41ee7a7..b373737 100755
--- a/engine/schema/src/com/cloud/host/dao/HostDaoImpl.java
+++ b/engine/schema/src/com/cloud/host/dao/HostDaoImpl.java
@@ -396,7 +396,7 @@ public class HostDaoImpl extends GenericDaoBase<HostVO, Long> implements
HostDao
     @Override
     public List<HostVO> listByDataCenterId(long id) {
         SearchCriteria<HostVO> sc = DcSearch.create();
-        sc.setParameters("dcId", id);
+        sc.setParameters("dc", id);
         sc.setParameters("status", Status.Up);
         sc.setParameters("type", Host.Type.Routing);
         sc.setParameters("resourceState", ResourceState.Enabled);

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/458de932/engine/schema/src/com/cloud/vm/dao/NicDaoImpl.java
----------------------------------------------------------------------
diff --git a/engine/schema/src/com/cloud/vm/dao/NicDaoImpl.java b/engine/schema/src/com/cloud/vm/dao/NicDaoImpl.java
index 8e9f7fa..a7b7625 100644
--- a/engine/schema/src/com/cloud/vm/dao/NicDaoImpl.java
+++ b/engine/schema/src/com/cloud/vm/dao/NicDaoImpl.java
@@ -66,6 +66,7 @@ public class NicDaoImpl extends GenericDaoBase<NicVO, Long> implements
NicDao {
         AllFieldsSearch.and("broadcastUri", AllFieldsSearch.entity().getBroadcastUri(), Op.EQ);
         AllFieldsSearch.and("secondaryip", AllFieldsSearch.entity().getSecondaryIp(), Op.EQ);
         AllFieldsSearch.and("nicid", AllFieldsSearch.entity().getId(), Op.EQ);
+        AllFieldsSearch.and("strategy", AllFieldsSearch.entity().getReservationStrategy(),
Op.EQ);
         AllFieldsSearch.done();
 
         IpSearch = createSearchBuilder(String.class);


Mime
View raw message