[jboss-svn-commits] JBL Code SVN: r19199 - labs/jbossrules/trunk/drools-core/src/main/java/org/drools/reteoo.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Mar 21 19:50:09 EDT 2008


Author: mark.proctor at jboss.com
Date: 2008-03-21 19:50:09 -0400 (Fri, 21 Mar 2008)
New Revision: 19199

Modified:
   labs/jbossrules/trunk/drools-core/src/main/java/org/drools/reteoo/RightTuple.java
Log:
JBRULES-1520 RightTuple merge for asynchronous Rete propagations
-RightTuple correctly adds itself to the FactHandle

Modified: labs/jbossrules/trunk/drools-core/src/main/java/org/drools/reteoo/RightTuple.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/main/java/org/drools/reteoo/RightTuple.java	2008-03-21 23:22:47 UTC (rev 19198)
+++ labs/jbossrules/trunk/drools-core/src/main/java/org/drools/reteoo/RightTuple.java	2008-03-21 23:50:09 UTC (rev 19199)
@@ -16,7 +16,7 @@
     private RightTuple               handlePrevious;
     private RightTuple               handleNext;
 
-    private RightTupleList            memory;
+    private RightTupleList           memory;
 
     private Entry                    previous;
     private Entry                    next;
@@ -40,13 +40,13 @@
         this.hashCode = this.handle.hashCode();
         this.sink = sink;
 
-        //        RightTuple currentFirst = handle.getRightTuple();
-        //        if ( currentFirst != null ) {
-        //            currentFirst.handlePrevious =  this;
-        //            this.handleNext = currentFirst;
-        //        }
-        //        
-        //        handle.setRightTuple( this );                
+        RightTuple currentFirst = handle.getRightTuple();
+        if ( currentFirst != null ) {
+            currentFirst.handlePrevious = this;
+            this.handleNext = currentFirst;
+        }
+
+        handle.setRightTuple( this );
     }
 
     public RightTuple(RightTuple parent) {




More information about the jboss-svn-commits mailing list