incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prachida...@apache.org
Subject [1/2] git commit: CS 16158: Load Test - Adding host takes much longer in 3.0.x compared to 2.2.14.
Date Fri, 31 Aug 2012 20:40:37 GMT
Updated Branches:
  refs/heads/master 856958a78 -> 083cef37f


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/master
Commit: 083cef37f10f92e5f629b46cb906c55035e75d15
Parents: 3d0069b
Author: Prachi Damle <prachi@cloud.com>
Authored: Wed Aug 29 12:06:36 2012 -0700
Committer: Prachi Damle <prachi@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) {


Mime
View raw message