Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mariofusco committed Dec 12, 2024
1 parent e6696d8 commit d43f2d5
Showing 1 changed file with 28 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,20 @@ public TupleImpl detachLeftTupleAfter(RuleBasePartitionId partitionId, ObjectTyp
}

if (detached != null) {
removeLeftTuple(detached);
if (firstLeftTuple == detached) {
firstLeftTuple = null;
lastLeftTuple = null;
}

if (lastLeftTuple == detached) {
lastLeftTuple = null;
}

if (detached.getHandlePrevious() != null) {
lastLeftTuple = detached.getHandlePrevious();
detached.setHandlePrevious(null);
lastLeftTuple.setHandleNext(null);
}
}
return detached;
}
Expand All @@ -672,7 +685,20 @@ public TupleImpl detachRightTupleAfter(RuleBasePartitionId partitionId, ObjectTy
}

if (detached != null) {
removeRightTuple(detached);
if (firstRightTuple == detached) {
firstRightTuple = null;
lastRightTuple = null;
}

if (lastRightTuple == detached) {
lastRightTuple = null;
}

if (detached.getHandlePrevious() != null) {
lastRightTuple = detached.getHandlePrevious();
detached.setHandlePrevious(null);
lastRightTuple.setHandleNext(null);
}
}
return detached;
}
Expand Down

0 comments on commit d43f2d5

Please sign in to comment.