提交 1ee866cf 编写于 作者: W Wojciech Macek 提交者: Roman Bogorodskiy

bhyve: fix domain management

When domain is not persistent, it should be forgotten upon destroying.
上级 86cfa1f6
......@@ -753,8 +753,14 @@ bhyveDomainDestroy(virDomainPtr dom)
ret = virBhyveProcessStop(privconn, vm, VIR_DOMAIN_SHUTOFF_DESTROYED);
if (!vm->persistent) {
virDomainObjListRemove(privconn->domains, vm);
vm = NULL;
}
cleanup:
virObjectUnlock(vm);
if (vm)
virObjectUnlock(vm);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册