mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
CLOUDSTACK-4534:[object_store_refactor] Deleting uploaded volume is not
deleting the volume from backend.
This commit is contained in:
parent
e958f22ff3
commit
a20097b967
@ -566,12 +566,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…
x
Reference in New Issue
Block a user