You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by ok...@apache.org on 2015/05/16 01:14:13 UTC

[06/10] incubator-tinkerpop git commit: TINKERPOP3-670: Cloned tail step should not include traverser buffer contents

TINKERPOP3-670: Cloned tail step should not include traverser buffer contents


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

Branch: refs/heads/master
Commit: 06b6be1385af946c5e5fcbe4e72d2302f65895e7
Parents: 8d71d00
Author: mhfrantz <mf...@redsealnetworks.com>
Authored: Thu May 14 00:45:12 2015 -0700
Committer: mhfrantz <mf...@redsealnetworks.com>
Committed: Fri May 15 14:14:45 2015 -0700

----------------------------------------------------------------------
 .../gremlin/process/traversal/step/filter/TailGlobalStep.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/06b6be13/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/filter/TailGlobalStep.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/filter/TailGlobalStep.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/filter/TailGlobalStep.java
index e4db2a1..92367f7 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/filter/TailGlobalStep.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/filter/TailGlobalStep.java
@@ -65,7 +65,7 @@ public final class TailGlobalStep<S> extends AbstractStep<S, S> {
     @Override
     public TailGlobalStep<S> clone() {
         final TailGlobalStep<S> clone = (TailGlobalStep<S>) super.clone();
-        clone.tail = new ArrayDeque<Traverser.Admin<S>>(this.tail);
+        clone.tail = new ArrayDeque<Traverser.Admin<S>>((int)this.limit);
         return clone;
     }