Skip to content

Commit

Permalink
Fix storage cleanup corner case preventing VM deletion (apache#5575)
Browse files Browse the repository at this point in the history
* Fix storage cleanup corner case

* Improve deletion

* Refactor
  • Loading branch information
nvazquez authored and shwstppr committed Mar 17, 2023
1 parent 9306d40 commit f476771
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1510,6 +1510,7 @@ protected Void copyVolumeCallBack(AsyncCallbackDispatcher<VolumeServiceImpl, Cop
srcVolume.processEvent(Event.OperationSuccessed);
destVolume.processEvent(Event.MigrationCopySucceeded, result.getAnswer());
volDao.updateUuid(srcVolume.getId(), destVolume.getId());
volDao.detachVolume(srcVolume.getId());
try {
destroyVolume(srcVolume.getId());
srcVolume = volFactory.getVolume(srcVolume.getId());
Expand Down

0 comments on commit f476771

Please sign in to comment.