mirror of
https://github.com/apache/cloudstack
synced 2026-08-05 10:36:44 +00:00
bug 13910: release cpu/memory after expunged
status 13910: resolved fixed Reviewed-by: prachi
This commit is contained in:
parent
99b49117b9
commit
bc73ac7e59
@ -633,7 +633,7 @@ public class CapacityManagerImpl implements CapacityManager, StateListener<State
|
||||
releaseVmCapacity(vm, false, false, oldHostId);
|
||||
}
|
||||
} else if (oldState == State.Stopped) {
|
||||
if (event == Event.DestroyRequested) {
|
||||
if (event == Event.DestroyRequested || event == Event.ExpungeOperation) {
|
||||
releaseVmCapacity(vm, true, false, vm.getLastHostId());
|
||||
} else if(event == Event.AgentReportMigrated) {
|
||||
releaseVmCapacity(vm, false, false, oldHostId);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user