mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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.
This commit is contained in:
parent
3d0069bb56
commit
083cef37f1
@ -76,13 +76,6 @@ public class StorageCapacityListener implements Listener {
|
|||||||
if (!(startup instanceof StartupStorageCommand)) {
|
if (!(startup instanceof StartupStorageCommand)) {
|
||||||
return;
|
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;
|
StartupStorageCommand ssCmd = (StartupStorageCommand) startup;
|
||||||
if (ssCmd.getResourceType() == Storage.StorageResourceType.STORAGE_HOST) {
|
if (ssCmd.getResourceType() == Storage.StorageResourceType.STORAGE_HOST) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user