Return-Path: X-Original-To: apmail-cloudstack-commits-archive@www.apache.org Delivered-To: apmail-cloudstack-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 63891C245 for ; Fri, 28 Jun 2013 05:47:42 +0000 (UTC) Received: (qmail 71095 invoked by uid 500); 28 Jun 2013 05:47:40 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 71084 invoked by uid 500); 28 Jun 2013 05:47:40 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 71070 invoked by uid 99); 28 Jun 2013 05:47:40 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jun 2013 05:47:40 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 0D1453A1EA; Fri, 28 Jun 2013 05:47:40 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: kishan@apache.org To: commits@cloudstack.apache.org Date: Fri, 28 Jun 2013 05:47:40 -0000 Message-Id: <6a3983f256274f4eb579131abf0f6db7@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] git commit: updated refs/heads/master-6-17-stable to 3faf768 Updated Branches: refs/heads/master-6-17-stable 166622f35 -> 3faf768d7 encrypt vnc_password for removed Vms also. Snapshots of removed Vms still refer Vm VOs Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/3faf768d Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/3faf768d Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/3faf768d Branch: refs/heads/master-6-17-stable Commit: 3faf768d7ef8bac0d53fc615e0b691774e7428ff Parents: 9adec15 Author: Kishan Kavala Authored: Thu Jun 27 17:39:05 2013 +0530 Committer: Kishan Kavala Committed: Fri Jun 28 11:04:58 2013 +0530 ---------------------------------------------------------------------- engine/schema/src/com/cloud/upgrade/dao/Upgrade2214to30.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3faf768d/engine/schema/src/com/cloud/upgrade/dao/Upgrade2214to30.java ---------------------------------------------------------------------- diff --git a/engine/schema/src/com/cloud/upgrade/dao/Upgrade2214to30.java b/engine/schema/src/com/cloud/upgrade/dao/Upgrade2214to30.java index 2d77429..e1b56df 100644 --- a/engine/schema/src/com/cloud/upgrade/dao/Upgrade2214to30.java +++ b/engine/schema/src/com/cloud/upgrade/dao/Upgrade2214to30.java @@ -462,7 +462,7 @@ public class Upgrade2214to30 extends Upgrade30xBase implements DbUpgrade { ResultSet rs = null; try { int numRows = 0; - pstmt = conn.prepareStatement("select count(id) from `cloud`.`vm_instance` where removed is null"); + pstmt = conn.prepareStatement("select count(id) from `cloud`.`vm_instance`"); rs = pstmt.executeQuery(); if(rs.next()){ numRows = rs.getInt(1); @@ -471,7 +471,7 @@ public class Upgrade2214to30 extends Upgrade30xBase implements DbUpgrade { pstmt.close(); int offset = 0; while(offset < numRows){ - pstmt = conn.prepareStatement("select id, vnc_password from `cloud`.`vm_instance` where removed is null limit "+offset+", 500"); + pstmt = conn.prepareStatement("select id, vnc_password from `cloud`.`vm_instance` limit "+offset+", 500"); rs = pstmt.executeQuery(); while (rs.next()) { long id = rs.getLong(1);