X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatabroker%2Factors%2Fdds%2FClientLocalHistory.java;h=807cf98cb73b3dcf5e4841eaf0f4d5b171ac025f;hb=refs%2Fchanges%2F99%2F47499%2F3;hp=8f2ee88563641b81c20137ba7acef23c8f909e9c;hpb=98d1c5606bad9633ce5549bcd691a98c75abdf6a;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/ClientLocalHistory.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/ClientLocalHistory.java index 8f2ee88563..807cf98cb7 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/ClientLocalHistory.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/ClientLocalHistory.java @@ -18,6 +18,7 @@ import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier * Client-side view of a local history. This class tracks all state related to a particular history and routes * frontend requests towards the backend. * + *

* This interface is used by the world outside of the actor system and in the actor system it is manifested via * its client actor. That requires some state transfer with {@link DistributedDataStoreClientBehavior}. In order to * reduce request latency, all messages are carbon-copied (and enqueued first) to the client actor. @@ -43,8 +44,8 @@ public final class ClientLocalHistory extends AbstractClientHistory implements A Preconditions.checkState(local == State.IDLE, "Local history %s state is %s", this, local); updateState(local, State.TX_OPEN); - return new ClientTransaction(getClient(), this, - new TransactionIdentifier(getIdentifier(), NEXT_TX_UPDATER.getAndIncrement(this))); + return new ClientTransaction(this, new TransactionIdentifier(getIdentifier(), + NEXT_TX_UPDATER.getAndIncrement(this))); } @Override