提交 14d03b27 编写于 作者: J Jim Fehlig

libxl: remove redundant calls to virObjectEventStateQueue

In libxlDomainShutdownThread, virObjectEventStateQueue is needlessly
called in the destroy and restart labels. The cleanup label aready
queues whatever event was created based on libxl_shutdown_reason.
There is no need to handle destroy and restart differently.
Signed-off-by: NJim Fehlig <jfehlig@suse.com>
ACKed-by: NMichal Privoznik <mprivozn@redhat.com>
上级 e08e7924
...@@ -538,8 +538,6 @@ libxlDomainShutdownThread(void *opaque) ...@@ -538,8 +538,6 @@ libxlDomainShutdownThread(void *opaque)
} }
destroy: destroy:
virObjectEventStateQueue(driver->domainEventState, dom_event);
dom_event = NULL;
libxlDomainDestroyInternal(driver, vm); libxlDomainDestroyInternal(driver, vm);
libxlDomainCleanup(driver, vm); libxlDomainCleanup(driver, vm);
if (!vm->persistent) if (!vm->persistent)
...@@ -548,8 +546,6 @@ libxlDomainShutdownThread(void *opaque) ...@@ -548,8 +546,6 @@ libxlDomainShutdownThread(void *opaque)
goto endjob; goto endjob;
restart: restart:
virObjectEventStateQueue(driver->domainEventState, dom_event);
dom_event = NULL;
libxlDomainDestroyInternal(driver, vm); libxlDomainDestroyInternal(driver, vm);
libxlDomainCleanup(driver, vm); libxlDomainCleanup(driver, vm);
if (libxlDomainStartNew(driver, vm, false) < 0) { if (libxlDomainStartNew(driver, vm, false) < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册