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%2Fdatastore%2FDebugThreePhaseCommitCohort.java;fp=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FDebugThreePhaseCommitCohort.java;h=4562ed13c56955c96e3f5ede6cb97c3231e5fb30;hp=afb5773f43ff55549af747a71e87be844c0f3c30;hb=118cd0216b0c6b0ec1a01689ec2025a13e090861;hpb=73ab61a037dd2489600acbc1eaf6f9ee549c204a diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DebugThreePhaseCommitCohort.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DebugThreePhaseCommitCohort.java index afb5773f43..4562ed13c5 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DebugThreePhaseCommitCohort.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DebugThreePhaseCommitCohort.java @@ -17,6 +17,8 @@ import com.google.common.util.concurrent.MoreExecutors; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import java.util.List; import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier; +import org.opendaylight.mdsal.common.api.CommitInfo; +import org.opendaylight.yangtools.yang.common.Empty; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import scala.concurrent.Future; @@ -67,17 +69,17 @@ class DebugThreePhaseCommitCohort extends AbstractThreePhaseCommitCohort } @Override - public ListenableFuture preCommit() { + public ListenableFuture preCommit() { return addFutureCallback(delegate.preCommit()); } @Override - public ListenableFuture commit() { + public ListenableFuture commit() { return addFutureCallback(delegate.commit()); } @Override - public ListenableFuture abort() { + public ListenableFuture abort() { return delegate.abort(); } @@ -89,6 +91,6 @@ class DebugThreePhaseCommitCohort extends AbstractThreePhaseCommitCohort @VisibleForTesting void setLogger(final Logger logger) { - this.log = logger; + log = logger; } }