mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
Update ID after stopping a domain
This commit is contained in:
parent
fd81a09729
commit
e670d39417
@ -1620,6 +1620,7 @@ esxDomainDestroy(virDomainPtr domain)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
domain->id = -1;
|
||||
result = 0;
|
||||
|
||||
cleanup:
|
||||
|
@ -531,6 +531,7 @@ static int openvzDomainShutdown(virDomainPtr dom) {
|
||||
|
||||
vm->def->id = -1;
|
||||
vm->state = VIR_DOMAIN_SHUTOFF;
|
||||
dom->id = -1;
|
||||
ret = 0;
|
||||
|
||||
cleanup:
|
||||
|
@ -3688,6 +3688,8 @@ phypDomainDestroy(virDomainPtr dom)
|
||||
if (phypUUIDTable_RemLpar(dom->conn, dom->id) == -1)
|
||||
goto err;
|
||||
|
||||
dom->id = -1;
|
||||
|
||||
VIR_FREE(cmd);
|
||||
VIR_FREE(ret);
|
||||
return 0;
|
||||
|
@ -1587,6 +1587,7 @@ static int vboxDomainDestroy(virDomainPtr dom) {
|
||||
}
|
||||
#endif
|
||||
VBOX_RELEASE(console);
|
||||
dom->id = -1;
|
||||
ret = 0;
|
||||
}
|
||||
data->vboxSession->vtbl->Close(data->vboxSession);
|
||||
|
@ -830,6 +830,7 @@ xenapiDomainDestroy (virDomainPtr dom)
|
||||
return -1;
|
||||
}
|
||||
xen_vm_set_free(vms);
|
||||
dom->id = -1;
|
||||
return 0;
|
||||
}
|
||||
if (vms) xen_vm_set_free(vms);
|
||||
|
Loading…
Reference in New Issue
Block a user