xenserver: Improve efficiency of code by using get_all_records_where()
authorRob Hoes <rob.hoes@citrix.com>
Wed, 27 Jun 2012 15:14:21 +0000 (16:14 +0100)
committerBen Pfaff <blp@nicira.com>
Wed, 27 Jun 2012 16:33:55 +0000 (09:33 -0700)
commit1dc6839d2dd4e672742114a2664f5130c3235f3d
tree8f1ea71cdb831f7d447e8f0e117f6d72b93b4788
parent0d7e2fe4d5decafe1d52c4dbdb0d77d17ac53a80
xenserver: Improve efficiency of code by using get_all_records_where()

Replace the get_record() for network references which caused as many
slave-to-master calls as there are Network records plus one.
The get_all_records_where() call gets exactly what is needed with a single
call.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Acked-by: Dominic Curran <dominic.curran@citrix.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync