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%2FThreePhaseCommitCohort.java;h=b10bf1d9fc6b3a353a68c55d960c5955f5323aa1;hp=00d4ab5782e3e7f0a365bdd9ace5be917b423dc1;hb=1af23ad8e572896323ed5d1c723d977a16eb7e6d;hpb=c3140359f8fc9759a309cb2d0476df5609952894 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ThreePhaseCommitCohort.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ThreePhaseCommitCohort.java index 00d4ab5782..b10bf1d9fc 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ThreePhaseCommitCohort.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ThreePhaseCommitCohort.java @@ -9,6 +9,7 @@ package org.opendaylight.controller.cluster.datastore; import akka.actor.ActorRef; +import akka.actor.PoisonPill; import akka.actor.Props; import akka.actor.UntypedActor; import akka.event.Logging; @@ -55,6 +56,7 @@ public class ThreePhaseCommitCohort extends UntypedActor { }); } + @Override public void onReceive(Object message) throws Exception { log.debug("Received message {}", message); @@ -94,6 +96,8 @@ public class ThreePhaseCommitCohort extends UntypedActor { shardActor.forward(new ForwardedCommitTransaction(cohort, modification), getContext()); + getContext().parent().tell(PoisonPill.getInstance(), getSelf()); + } private void preCommit(PreCommitTransaction message) {