Not passing format to VolumeDataStore due to removal of format column

from volume_store_ref.
This commit is contained in:
Min Chen 2013-05-23 11:02:49 -07:00
parent 755b9311a4
commit 4611b515db
2 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@ public class VolumeDataStoreVO implements StateObject<ObjectInDataStoreStateMach
public VolumeDataStoreVO(long hostId, long volumeId, Date lastUpdated,
int downloadPercent, Status downloadState,
String localDownloadPath, String errorString, String jobId,
String installPath, String downloadUrl, String checksum, ImageFormat format) {
String installPath, String downloadUrl, String checksum) {
//super();
this.dataStoreId = hostId;
this.volumeId = volumeId;

View File

@ -232,7 +232,7 @@ public class DownloadMonitorImpl extends ManagerBase implements DownloadMonitor
volumeHost = _volumeStoreDao.findByStoreVolume(store.getId(), volume.getId());
if (volumeHost == null) {
volumeHost = new VolumeDataStoreVO(store.getId(), volume.getId(), new Date(), 0, Status.NOT_DOWNLOADED,
null, null, "jobid0000", null, url, checkSum, format);
null, null, "jobid0000", null, url, checkSum);
_volumeStoreDao.persist(volumeHost);
} else if ((volumeHost.getJobId() != null) && (volumeHost.getJobId().length() > 2)) {
downloadJobExists = true;