Update ID after stopping a domain

This commit is contained in:
Matthias Bolte
2010-07-30 22:49:26 +02:00
parent fd81a09729
commit e670d39417
5 changed files with 6 additions and 0 deletions
+1
View File
@@ -1620,6 +1620,7 @@ esxDomainDestroy(virDomainPtr domain)
goto cleanup;
}
domain->id = -1;
result = 0;
cleanup:
+1
View File
@@ -531,6 +531,7 @@ static int openvzDomainShutdown(virDomainPtr dom) {
vm->def->id = -1;
vm->state = VIR_DOMAIN_SHUTOFF;
dom->id = -1;
ret = 0;
cleanup:
+2
View File
@@ -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;
+1
View File
@@ -1587,6 +1587,7 @@ static int vboxDomainDestroy(virDomainPtr dom) {
}
#endif
VBOX_RELEASE(console);
dom->id = -1;
ret = 0;
}
data->vboxSession->vtbl->Close(data->vboxSession);
+1
View File
@@ -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);