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%2Fdatastore%2FDistributedDataStore.java;h=0bdb29b598a56e876b2acddfa2ee38186c482125;hb=70b924258e6c87219c38bcfefb3781ee3d2e2d02;hp=fe321d4cd2808bff7c6be29b67222b4876c8b2fe;hpb=d0621d28e507d9f6c0b9445d197f90253d34725d;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java index fe321d4cd2..0bdb29b598 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DistributedDataStore.java @@ -118,7 +118,7 @@ public class DistributedDataStore implements DistributedDataStoreInterface, Sche this.waitTillReadyTimeInMillis = actorContext.getDatastoreContext().getShardLeaderElectionTimeout().duration().toMillis() * READY_WAIT_FACTOR; - this.txContextFactory = TransactionContextFactory.create(actorContext); + this.txContextFactory = new TransactionContextFactory(actorContext, identifier); datastoreConfigMXBean = new DatastoreConfigurationMXBeanImpl( datastoreContextFactory.getBaseDatastoreContext().getDataStoreMXBeanType()); @@ -135,7 +135,7 @@ public class DistributedDataStore implements DistributedDataStoreInterface, Sche this.actorContext = Preconditions.checkNotNull(actorContext, "actorContext should not be null"); this.client = null; this.identifier = Preconditions.checkNotNull(identifier); - this.txContextFactory = TransactionContextFactory.create(actorContext); + this.txContextFactory = new TransactionContextFactory(actorContext, identifier); this.waitTillReadyTimeInMillis = actorContext.getDatastoreContext().getShardLeaderElectionTimeout().duration().toMillis() * READY_WAIT_FACTOR; }