]> git.ipfire.org Git - thirdparty/libvirt.git/commit
uml: s/virDomainObjListFindByID/virDomainObjListFindByUUID/
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 24 Apr 2015 07:34:10 +0000 (09:34 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 24 Apr 2015 11:26:09 +0000 (13:26 +0200)
commit152896ca7d0fd6fa31355f9c71c05e49c6de4e29
treeccfeac6a56af6391bb34be51b2220ae6860434fa
parent8728a5656300d7361f7435558f6eef62a4d07c93
uml: s/virDomainObjListFindByID/virDomainObjListFindByUUID/

ListFindByID() still requires to step through items in the hash table
(in the worst case scenario through all of them), lock each one and
compare whether we've found what we're looking for. This is suboptimal
as locking a domain object means we need to wait for the current API
running over the object to finish.

Unfortunately, we can't drop the function completely because we have
this public API virDomainLookupByID which we can't drop.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/uml/uml_driver.c