]> git.ipfire.org Git - thirdparty/libvirt.git/commit
domain_conf: Introducde virDomainObjListRenameAddNew() & virDomainObjListRenameRemove()
authorTomas Meszaros <exo@tty.sk>
Mon, 10 Aug 2015 19:59:16 +0000 (21:59 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 14 Aug 2015 08:50:20 +0000 (10:50 +0200)
commit28257dc2bee84f386c51f647a1824789e3b11862
tree31460b4b9f4526d88f078a97d5af12ad94492cf4
parentff486e0d29a7c08e7131447ca3c878ed791def4e
domain_conf: Introducde virDomainObjListRenameAddNew() & virDomainObjListRenameRemove()

We just need to update the entry in the second hash table. Since commit 8728a56
we have two hash tables for the domain list so that we can do O(1) lookup
regardless of looking up by UUID or name. Since with renaming a domain UUID does
not change, we only need to update the second hash table, where domains are
referenced by their name.

We will call both functions from the qemuDomainRename().

Signed-off-by: Tomas Meszaros <exo@tty.sk>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms