mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-7674 throw an exception when encountered
Conflicts: engine/schema/src/com/cloud/upgrade/dao/Upgrade430to431.java
This commit is contained in:
parent
0b31732bb1
commit
1de10dd6df
|
|
@ -58,8 +58,8 @@ public class Upgrade430to431 implements DbUpgrade {
|
|||
|
||||
private void updateVlanUris(Connection conn) {
|
||||
s_logger.debug("updating vlan URIs");
|
||||
Exception thrown = null;
|
||||
PreparedStatement selectstatement = null;
|
||||
CloudRuntimeException thrown = null;
|
||||
PreparedStatement selectstatement = null;
|
||||
ResultSet results = null;
|
||||
try{
|
||||
selectstatement = conn.prepareStatement("SELECT id, vlan_id FROM `cloud`.`vlan` where vlan_id not like '%:%'");
|
||||
|
|
@ -113,6 +113,9 @@ public class Upgrade430to431 implements DbUpgrade {
|
|||
} //else don't obfuscate the original exception
|
||||
}
|
||||
}
|
||||
if (thrown != null) {
|
||||
throw thrown;
|
||||
}
|
||||
s_logger.debug("Done updateing vlan URIs");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue