Return-Path: X-Original-To: apmail-incubator-cloudstack-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EDA33D709 for ; Wed, 5 Sep 2012 21:31:54 +0000 (UTC) Received: (qmail 60744 invoked by uid 500); 5 Sep 2012 21:31:50 -0000 Delivered-To: apmail-incubator-cloudstack-commits-archive@incubator.apache.org Received: (qmail 60669 invoked by uid 500); 5 Sep 2012 21:31:50 -0000 Mailing-List: contact cloudstack-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-commits@incubator.apache.org Received: (qmail 59903 invoked by uid 99); 5 Sep 2012 21:31:49 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2012 21:31:49 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 817211B6CD; Wed, 5 Sep 2012 21:31:49 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ahuang@apache.org To: cloudstack-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [19/50] [abbrv] git commit: CS 16158: Load Test - Adding host takes much longer in 3.0.x compared to 2.2.14. Message-Id: <20120905213149.817211B6CD@tyr.zones.apache.org> Date: Wed, 5 Sep 2012 21:31:49 +0000 (UTC) CS 16158: Load Test - Adding host takes much longer in 3.0.x compared to 2.2.14. Reviewed-By: Alena Changes: - Removing unnecessary search over op_host_capacity table in StorageCapacitylistener. Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/083cef37 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/083cef37 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/083cef37 Branch: refs/heads/javelin Commit: 083cef37f10f92e5f629b46cb906c55035e75d15 Parents: 3d0069b Author: Prachi Damle Authored: Wed Aug 29 12:06:36 2012 -0700 Committer: Prachi Damle Committed: Fri Aug 31 13:40:18 2012 -0700 ---------------------------------------------------------------------- .../cloud/capacity/StorageCapacityListener.java | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/083cef37/server/src/com/cloud/capacity/StorageCapacityListener.java ---------------------------------------------------------------------- diff --git a/server/src/com/cloud/capacity/StorageCapacityListener.java b/server/src/com/cloud/capacity/StorageCapacityListener.java index 384bdb9..d5751a3 100755 --- a/server/src/com/cloud/capacity/StorageCapacityListener.java +++ b/server/src/com/cloud/capacity/StorageCapacityListener.java @@ -76,13 +76,6 @@ public class StorageCapacityListener implements Listener { if (!(startup instanceof StartupStorageCommand)) { return; } - SearchCriteria capacitySC = _capacityDao.createSearchCriteria(); - capacitySC.addAnd("hostOrPoolId", SearchCriteria.Op.EQ, server.getId()); - capacitySC.addAnd("dataCenterId", SearchCriteria.Op.EQ, - server.getDataCenterId()); - capacitySC.addAnd("podId", SearchCriteria.Op.EQ, server.getPodId()); - List capacities = _capacityDao.search(capacitySC, null); - StartupStorageCommand ssCmd = (StartupStorageCommand) startup; if (ssCmd.getResourceType() == Storage.StorageResourceType.STORAGE_HOST) {