mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-4534:[object_store_refactor] Deleting uploaded volume is not
deleting the volume from backend.
This commit is contained in:
parent
e74d8a1d14
commit
362bf5b8b4
|
|
@ -577,12 +577,12 @@ public class VolumeServiceImpl implements VolumeService {
|
|||
@Override
|
||||
@DB
|
||||
public boolean destroyVolume(long volumeId) throws ConcurrentOperationException {
|
||||
|
||||
// mark volume entry in volumes table as destroy state
|
||||
VolumeInfo vol = volFactory.getVolume(volumeId);
|
||||
vol.processEvent(Event.DestroyRequested);
|
||||
vol.stateTransit(Volume.Event.DestroyRequested);
|
||||
snapshotMgr.deletePoliciesForVolume(volumeId);
|
||||
|
||||
vol.processEvent(Event.OperationSuccessed);
|
||||
vol.stateTransit(Volume.Event.OperationSucceeded);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue