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%2Fcompat%2FPreLithiumTransactionContextImpl.java;h=249a115588b7b1f78dbd7e720c777a958f9b23b6;hp=d17497c18c1acccb4f986be231e0adf3c7b39fab;hb=4b9316643d0001c8d36f6bc1ffab79f946f968e8;hpb=9f1061c46af5220ad95d8d0b94411ba2fd832a50 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/compat/PreLithiumTransactionContextImpl.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/compat/PreLithiumTransactionContextImpl.java index d17497c18c..249a115588 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/compat/PreLithiumTransactionContextImpl.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/compat/PreLithiumTransactionContextImpl.java @@ -20,7 +20,6 @@ import org.opendaylight.controller.cluster.datastore.messages.WriteData; import org.opendaylight.controller.cluster.datastore.utils.ActorContext; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier; import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode; -import org.opendaylight.yangtools.yang.model.api.SchemaContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import scala.concurrent.Future; @@ -37,10 +36,9 @@ public class PreLithiumTransactionContextImpl extends TransactionContextImpl { private final String transactionPath; public PreLithiumTransactionContextImpl(String transactionPath, ActorSelection actor, TransactionIdentifier identifier, - String transactionChainId, ActorContext actorContext, SchemaContext schemaContext, boolean isTxActorLocal, + ActorContext actorContext, boolean isTxActorLocal, short remoteTransactionVersion, OperationCompleter operationCompleter) { - super(actor, identifier, transactionChainId, actorContext, schemaContext, isTxActorLocal, - remoteTransactionVersion, operationCompleter); + super(actor, identifier, actorContext, isTxActorLocal, remoteTransactionVersion, operationCompleter); this.transactionPath = transactionPath; } @@ -85,4 +83,14 @@ public class PreLithiumTransactionContextImpl extends TransactionContextImpl { return readyTxReply.getCohortPath(); } + + @Override + public boolean supportsDirectCommit() { + return false; + } + + @Override + public Future directCommit() { + throw new UnsupportedOperationException("directCommit is not supported for " + getClass()); + } }