tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ok...@apache.org
Subject tinkerpop git commit: no local children end steps need NoOpBarriers.
Date Mon, 09 Jan 2017 16:41:46 GMT
Repository: tinkerpop
Updated Branches:
  refs/heads/TINKERPOP-1521 276064530 -> bdd1924a4


no local children end steps need NoOpBarriers.


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/bdd1924a
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/bdd1924a
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/bdd1924a

Branch: refs/heads/TINKERPOP-1521
Commit: bdd1924a4cdf32d9b0cc841cf24a73864ff64f04
Parents: 2760645
Author: Marko A. Rodriguez <okrammarko@gmail.com>
Authored: Mon Jan 9 09:41:42 2017 -0700
Committer: Marko A. Rodriguez <okrammarko@gmail.com>
Committed: Mon Jan 9 09:41:42 2017 -0700

----------------------------------------------------------------------
 .../traversal/strategy/optimization/PathRetractionStrategy.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/bdd1924a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/optimization/PathRetractionStrategy.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/optimization/PathRetractionStrategy.java
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/optimization/PathRetractionStrategy.java
index 1d09748..b5992a5 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/optimization/PathRetractionStrategy.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/optimization/PathRetractionStrategy.java
@@ -110,7 +110,7 @@ public final class PathRetractionStrategy extends AbstractTraversalStrategy<Trav
                         !(currentStep instanceof Barrier) &&
                         !(currentStep.getNextStep() instanceof Barrier) &&
                         !(currentStep.getTraversal().getParent() instanceof MatchStep) &&
-                        TraversalHelper.isGlobalChild(currentStep.getTraversal()))
+                        (currentStep.getNextStep() instanceof EmptyStep && TraversalHelper.isGlobalChild(currentStep.getTraversal())))
                     TraversalHelper.insertAfterStep(new NoOpBarrierStep<>(traversal,
this.standardBarrierSize), currentStep, traversal);
             }
         }


Mime
View raw message