]> xenbits.xensource.com Git - libvirt.git/commit
Clean up redundant usage of virDomainObjSetDefTransient
authorJán Tomko <jtomko@redhat.com>
Fri, 27 May 2016 10:56:05 +0000 (12:56 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 6 Jun 2016 06:34:22 +0000 (08:34 +0200)
commit9b111048ad9590b9be95cfb1720af0eed375d266
treea0d0c6b998d26e21add8a649d5417e95bb929354
parent2ccacdb3ec5ffa585d4ec3aad2cf4dffd4041ddc
Clean up redundant usage of virDomainObjSetDefTransient

Commit 45ec297d from November 2010:
    Make state driver device hotplug/update actually transient
added virDomainObjSetDefTransient calls to the domain startup
function in several drivers.

In November 2011, commit 8866eed:
    Set aliases for LXC/UML console devices
added a call earlier in the startup function, without removing the
existing ones.

Also, in the UML driver it seems the function never did anything
useful - vm->def->id is set asynchronnously in umlNotifyEvent.
At the time of calling virDomainObjSetDefTransient with live=false,
vm->def->id was likely still -1, making the call a no-op.
src/lxc/lxc_process.c
src/uml/uml_driver.c