Make database config recognize service offering change

This commit is contained in:
Kelven Yang 2010-08-27 20:01:06 -07:00 committed by edison
parent 6ae1c8fa31
commit 9db2925b77
2 changed files with 4 additions and 1 deletions

View File

@ -417,7 +417,9 @@ public class DownloadMonitorImpl implements DownloadMonitor {
if (storageHost == null) {
s_logger.warn("Huh? Agent id " + sserverId + " does not correspond to a row in hosts table?");
return;
} Set<VMTemplateVO> toBeDownloaded = new HashSet<VMTemplateVO>();
}
Set<VMTemplateVO> toBeDownloaded = new HashSet<VMTemplateVO>();
List<VMTemplateVO> allTemplates = _templateDao.listAllInZone(storageHost.getDataCenterId());
VMTemplateVO rtngTmplt = _templateDao.findRoutingTemplate();
VMTemplateVO defaultBuiltin = _templateDao.findDefaultBuiltinTemplate();

View File

@ -124,6 +124,7 @@ public class DatabaseConfig {
fieldNames.add("ramSize");
fieldNames.add("speed");
fieldNames.add("useLocalStorage");
fieldNames.add("hypervisorType");
fieldNames.add("diskSpace");
fieldNames.add("nwRate");
fieldNames.add("mcRate");