volume-upload: Volume uploaded using new POST based upload goes to inconsistent state on destroying SSVM

Added a check not to cleanup volume related entries when SSVM is destroyed for volumes upload using the POST based upload feature
This commit is contained in:
Koushik Das 2015-01-28 12:44:45 +05:30
parent 71873c8d41
commit ae21f44c7b
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ public class VolumeDataStoreDaoImpl extends GenericDaoBase<VolumeDataStoreVO, Lo
private SearchBuilder<VolumeDataStoreVO> uploadVolumeSearch;
private SearchBuilder<VolumeVO> volumeOnlySearch;
private SearchBuilder<VolumeDataStoreVO> uploadVolumeStateSearch;
private static final String EXPIRE_DOWNLOAD_URLS_FOR_ZONE = "update volume_store_ref set download_url_created=? where store_id in (select id from image_store where data_center_id=?)";
private static final String EXPIRE_DOWNLOAD_URLS_FOR_ZONE = "update volume_store_ref set download_url_created=? where download_url_created is not null and store_id in (select id from image_store where data_center_id=?)";
@Inject