You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ah...@apache.org on 2012/09/05 23:31:49 UTC

[19/50] [abbrv] git commit: CS 16158: Load Test - Adding host takes much longer in 3.0.x compared to 2.2.14.

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 <pr...@cloud.com>
Authored: Wed Aug 29 12:06:36 2012 -0700
Committer: Prachi Damle <pr...@cloud.com>
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<CapacityVO> 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<CapacityVO> capacities = _capacityDao.search(capacitySC, null);
-
 
         StartupStorageCommand ssCmd = (StartupStorageCommand) startup;
         if (ssCmd.getResourceType() == Storage.StorageResourceType.STORAGE_HOST) {