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%2FShardSnapshotCohort.java;h=7cdd7c6b98681cdc56f06f91552e6d0b191b9a8e;hp=e49aa1e4f37d484d25439fd009affdeeba3a3cd8;hb=4062f5241a2a6f58ffb83dd1e9939ee66122d217;hpb=d0621d28e507d9f6c0b9445d197f90253d34725d diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardSnapshotCohort.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardSnapshotCohort.java index e49aa1e4f3..7cdd7c6b98 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardSnapshotCohort.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardSnapshotCohort.java @@ -10,7 +10,6 @@ package org.opendaylight.controller.cluster.datastore; import akka.actor.ActorRef; import com.google.common.base.Preconditions; import java.util.concurrent.ExecutionException; -import org.opendaylight.controller.cluster.datastore.identifiers.ShardTransactionIdentifier; import org.opendaylight.controller.cluster.datastore.messages.CreateSnapshot; import org.opendaylight.controller.cluster.datastore.utils.SerializationUtils; import org.opendaylight.controller.cluster.raft.RaftActorSnapshotCohort; @@ -45,11 +44,8 @@ class ShardSnapshotCohort implements RaftActorSnapshotCohort { // so that this actor does not get block building the snapshot. THe transaction actor will // after processing the CreateSnapshot message. - ShardTransactionIdentifier transactionID = new ShardTransactionIdentifier( - "createSnapshot" + ++createSnapshotTransactionCounter); - ActorRef createSnapshotTransaction = transactionActorFactory.newShardTransaction( - TransactionType.READ_ONLY, transactionID, ""); + TransactionType.READ_ONLY, "createSnapshot" + ++createSnapshotTransactionCounter, ""); createSnapshotTransaction.tell(CreateSnapshot.INSTANCE, actorRef); }