tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ok...@apache.org
Subject tinkerpop git commit: a potential clone() error in DefaultTraversal where the 'last traverser' field is not set to EmptyTraverser. We haven't run into this problem, but it was a potential. CTR.
Date Tue, 10 Jan 2017 17:52:58 GMT
Repository: tinkerpop
Updated Branches:
  refs/heads/tp32 fd760264c -> 3c80611ac


a potential clone() error in DefaultTraversal where the 'last traverser' field is not set
to EmptyTraverser. We haven't run into this problem, but it was a potential. CTR.


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

Branch: refs/heads/tp32
Commit: 3c80611acd992f35e26ce7c4e148180a2893a876
Parents: fd76026
Author: Marko A. Rodriguez <okrammarko@gmail.com>
Authored: Tue Jan 10 10:52:53 2017 -0700
Committer: Marko A. Rodriguez <okrammarko@gmail.com>
Committed: Tue Jan 10 10:52:53 2017 -0700

----------------------------------------------------------------------
 .../tinkerpop/gremlin/process/traversal/util/DefaultTraversal.java  | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/3c80611a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/util/DefaultTraversal.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/util/DefaultTraversal.java
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/util/DefaultTraversal.java
index 3c21e37..eb5f087 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/util/DefaultTraversal.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/util/DefaultTraversal.java
@@ -234,6 +234,7 @@ public class DefaultTraversal<S, E> implements Traversal.Admin<S,
E> {
     public DefaultTraversal<S, E> clone() {
         try {
             final DefaultTraversal<S, E> clone = (DefaultTraversal<S, E>) super.clone();
+            clone.lastTraverser = EmptyTraverser.instance();
             clone.steps = new ArrayList<>();
             clone.unmodifiableSteps = Collections.unmodifiableList(clone.steps);
             clone.sideEffects = this.sideEffects.clone();


Mime
View raw message