]> xenbits.xensource.com Git - libvirt.git/commit
esx: Fetch snapshot info directly for filtering
authorTomáš Golembiovský <tgolembi@redhat.com>
Tue, 12 Jul 2016 03:20:03 +0000 (05:20 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 12 Jul 2016 16:04:41 +0000 (18:04 +0200)
commit8ddc56e75109787e99dd8d756cbd1d03e653c857
tree0150698e4539dbd653fe005496a762960e1d30d5
parent999af9cfc339c4d229bb5616a7a142eb1a93c13e
esx: Fetch snapshot info directly for filtering

When fetching domains with virConnectListAllDomains() and when filtering
by snapshot existence is requested the ESX driver first lists all the
domains and then check one-by-one for snapshot existence. This process
takes unnecessarily long time.

To significantly improve the time necessary to finish the query we can
request the snapshot related info directly when querying the list of
domains from VMware.

Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
src/esx/esx_driver.c