mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-15 18:12:35 +01:00
CLOUDSTACK-3716:NPE triggered in DownloadListener.
This commit is contained in:
parent
181fb03e7e
commit
cc99a83d71
@ -1047,7 +1047,9 @@ public class VolumeServiceImpl implements VolumeService {
|
|||||||
VolumeVO volume = _volumeDao.findById(volumeStore.getVolumeId());
|
VolumeVO volume = _volumeDao.findById(volumeStore.getVolumeId());
|
||||||
if (volume == null ){
|
if (volume == null ){
|
||||||
s_logger.warn("Volume_store_ref shows that volume " + volumeStore.getVolumeId() + " is on image store " + storeId
|
s_logger.warn("Volume_store_ref shows that volume " + volumeStore.getVolumeId() + " is on image store " + storeId
|
||||||
+ ", but the volume is not found in volumes table, potentially some bugs in deleteVolume, so we just treat this volume to be deleted");
|
+ ", but the volume is not found in volumes table, potentially some bugs in deleteVolume, so we just treat this volume to be deleted and mark it as destroyed");
|
||||||
|
volumeStore.setDestroyed(true);
|
||||||
|
_volumeStoreDao.update(volumeStore.getId(), volumeStore);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// Exists then don't download
|
// Exists then don't download
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user