remove the listnetwork, which causes mgt server uses 100% cpu, if you have 600 records in networks table

This commit is contained in:
Edison Su 2011-06-07 13:43:51 -04:00
parent 4529e1c615
commit 04c7456ca1
1 changed files with 2 additions and 1 deletions

View File

@ -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) {