Speed up ClusterWrapperImpl 25/14425/1
authorRobert Varga <rovarga@cisco.com>
Fri, 23 Jan 2015 10:18:06 +0000 (11:18 +0100)
committerRobert Varga <rovarga@cisco.com>
Fri, 23 Jan 2015 11:13:51 +0000 (12:13 +0100)
commit0b0ff8298bf54c54573c5758bd32b10516386e21
tree1f259377739a0bce882e4c4a0047b5f71a9a27e5
parentfb6de938db4849cecc235eb274045d0ac45d7254
Speed up ClusterWrapperImpl

Instead of forcing a Set.toArray(), just pick the first entry in
iteration order.

Change-Id: If564ee3695707ad2482845bc8610693722e27943
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ClusterWrapperImpl.java