mirror of https://github.com/apache/cloudstack.git
remove the listnetwork, which causes mgt server uses 100% cpu, if you have 600 records in networks table
This commit is contained in:
parent
4529e1c615
commit
04c7456ca1
|
|
@ -1857,6 +1857,7 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
|
|||
}
|
||||
|
||||
if (isShared == null || isShared) {
|
||||
/*FIXME
|
||||
List<NetworkVO> allNetworks = _networksDao.listNetworksBy(true);
|
||||
for (NetworkVO network : allNetworks) {
|
||||
NetworkOffering offering = _configMgr.getNetworkOffering(network.getNetworkOfferingId());
|
||||
|
|
@ -1865,7 +1866,7 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
|
|||
} else {
|
||||
allowedSharedNetworks.add(network.getId());
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
} else if (isShared != null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue