X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatabroker%2Factors%2Fdds%2FVotingFuture.java;h=01298dfabfcef1c37e0eaeb0e8ded68a6e975b68;hp=b6aba31e50982bc47d679189ea3f017cad9e2724;hb=refs%2Fchanges%2F99%2F47499%2F3;hpb=314d5b41ea6b464db939da95a33c872f594ccada diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/VotingFuture.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/VotingFuture.java index b6aba31e50..01298dfabf 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/VotingFuture.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/VotingFuture.java @@ -22,6 +22,7 @@ import javax.annotation.concurrent.GuardedBy; * an exception. This exception corresponds to the cause reported by the first 'no' vote, with all subsequent votes * added as suppressed exceptions. * + *

* Implementation is geared toward positive votes. Negative votes have to synchronize and therefore are more likely * to see contention. * @@ -53,7 +54,7 @@ class VotingFuture extends AbstractFuture { if (castVote()) { synchronized (failures) { resolveResult(); - } + } } }