提交 e670d394 编写于 作者: M Matthias Bolte

Update ID after stopping a domain

上级 fd81a097
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册