mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +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;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
domain->id = -1;
|
||||||
result = 0;
|
result = 0;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
@ -531,6 +531,7 @@ static int openvzDomainShutdown(virDomainPtr dom) {
|
|||||||
|
|
||||||
vm->def->id = -1;
|
vm->def->id = -1;
|
||||||
vm->state = VIR_DOMAIN_SHUTOFF;
|
vm->state = VIR_DOMAIN_SHUTOFF;
|
||||||
|
dom->id = -1;
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
@ -3688,6 +3688,8 @@ phypDomainDestroy(virDomainPtr dom)
|
|||||||
if (phypUUIDTable_RemLpar(dom->conn, dom->id) == -1)
|
if (phypUUIDTable_RemLpar(dom->conn, dom->id) == -1)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
|
dom->id = -1;
|
||||||
|
|
||||||
VIR_FREE(cmd);
|
VIR_FREE(cmd);
|
||||||
VIR_FREE(ret);
|
VIR_FREE(ret);
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1587,6 +1587,7 @@ static int vboxDomainDestroy(virDomainPtr dom) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
VBOX_RELEASE(console);
|
VBOX_RELEASE(console);
|
||||||
|
dom->id = -1;
|
||||||
ret = 0;
|
ret = 0;
|
||||||
}
|
}
|
||||||
data->vboxSession->vtbl->Close(data->vboxSession);
|
data->vboxSession->vtbl->Close(data->vboxSession);
|
||||||
|
@ -830,6 +830,7 @@ xenapiDomainDestroy (virDomainPtr dom)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
xen_vm_set_free(vms);
|
xen_vm_set_free(vms);
|
||||||
|
dom->id = -1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (vms) xen_vm_set_free(vms);
|
if (vms) xen_vm_set_free(vms);
|
||||||
|
Loading…
Reference in New Issue
Block a user