You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2016/03/17 23:44:05 UTC

[32/50] incubator-tinkerpop git commit: The logic for is.testing was reversed somehow.

The logic for is.testing was reversed somehow.

The "attaching" iterator needs to be used when testing is enabled.


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

Branch: refs/heads/TINKERPOP-575
Commit: dd9b2fc000538cf13ee297c48d57c9339331cb37
Parents: 9b7b537
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Wed Mar 16 10:38:34 2016 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Thu Mar 17 17:01:35 2016 -0400

----------------------------------------------------------------------
 .../gremlin/driver/remote/DriverRemoteConnection.java          | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/dd9b2fc0/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/remote/DriverRemoteConnection.java
----------------------------------------------------------------------
diff --git a/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/remote/DriverRemoteConnection.java b/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/remote/DriverRemoteConnection.java
index c900523..50422b3 100644
--- a/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/remote/DriverRemoteConnection.java
+++ b/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/remote/DriverRemoteConnection.java
@@ -155,12 +155,12 @@ public class DriverRemoteConnection implements RemoteConnection {
     @Override
     public Iterator<Traverser> submit(final Traversal t) throws RemoteConnectionException {
         try {
-            if (attachElements)
-                return new TraverserIterator(client.submit(t).iterator());
-            else {
+            if (attachElements) {
                 if (!conf.isPresent()) throw new IllegalStateException("Traverser can't be reattached for testing");
                 final Graph graph = ((Supplier<Graph>) conf.get().getProperty("hidden.for.testing.only")).get();
                 return new AttachingTraverserIterator(client.submit(t).iterator(), graph);
+            } else {
+                return new TraverserIterator(client.submit(t).iterator());
             }
         } catch (Exception ex) {
             throw new RemoteConnectionException(ex);