cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alena1...@apache.org
Subject git commit: updated refs/heads/master to 4f89c88
Date Mon, 01 Jul 2013 19:01:00 GMT
Updated Branches:
  refs/heads/master 1c67e34c8 -> 4f89c8898


41-42 DB upgrade: fixed physicalNetworkUpdate method - one of the preparedStatement elements
wasn't set


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

Branch: refs/heads/master
Commit: 4f89c889858e76d48bb731770909c3ff064a78ad
Parents: 1c67e34
Author: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Authored: Mon Jul 1 11:54:30 2013 -0700
Committer: Alena Prokharchyk <alena.prokharchyk@citrix.com>
Committed: Mon Jul 1 12:00:54 2013 -0700

----------------------------------------------------------------------
 engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/4f89c889/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java
----------------------------------------------------------------------
diff --git a/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java b/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java
index a70f4b9..da68348 100644
--- a/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java
+++ b/engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java
@@ -1112,6 +1112,7 @@ public class Upgrade410to420 implements DbUpgrade {
                 //Add internal lb vm to the list of physical network elements
                 PreparedStatement pstmt1 = conn.prepareStatement("SELECT id FROM `cloud`.`physical_network_service_providers`"
+
                 		" WHERE physical_network_id=? AND provider_name='InternalLbVm'");
+                pstmt1.setLong(1, pNtwkId);
                 ResultSet rs1 = pstmt1.executeQuery();
                 while (rs1.next()) {
                     long providerId = rs1.getLong(1);
@@ -1124,7 +1125,7 @@ public class Upgrade410to420 implements DbUpgrade {
             }
 
         } catch (SQLException e) {
-            throw new CloudRuntimeException("Unable existing physical networks with internal
lb provider", e);
+            throw new CloudRuntimeException("Unable to update existing physical networks
with internal lb provider", e);
         } finally {
             try {
                 if (rs != null) {


Mime
View raw message