From a8ab24be964b8cf3743d7c5789542e80f3854d2f Mon Sep 17 00:00:00 2001 From: Abhi Date: Fri, 13 Apr 2012 13:49:09 +0530 Subject: [PATCH] bug CS-14466: removing blank statement --- server/src/com/cloud/upgrade/dao/Upgrade2214to30.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/src/com/cloud/upgrade/dao/Upgrade2214to30.java b/server/src/com/cloud/upgrade/dao/Upgrade2214to30.java index 31fc75ea09f..7517941c9aa 100755 --- a/server/src/com/cloud/upgrade/dao/Upgrade2214to30.java +++ b/server/src/com/cloud/upgrade/dao/Upgrade2214to30.java @@ -28,6 +28,7 @@ import org.apache.log4j.Logger; import com.cloud.offering.NetworkOffering; import com.cloud.utils.crypt.DBEncryptionUtil; +import com.cloud.utils.db.Transaction; import com.cloud.utils.exception.CloudRuntimeException; import com.cloud.utils.script.Script; @@ -953,9 +954,6 @@ public class Upgrade2214to30 implements DbUpgrade { pstmt = conn .prepareStatement("UPDATE op_host_capacity, data_center SET op_host_capacity.capacity_state='Disabled' where data_center.id=op_host_capacity.data_center_id and data_center.allocation_state='Disabled';"); pstmt.executeUpdate(); - pstmt = conn - .prepareStatement(""); - pstmt.executeUpdate(); } catch (SQLException e) { throw new CloudRuntimeException("Unable to update op_host_capacity table. ", e); } finally {