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 21:24:00 UTC
[43/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/dfc73b72
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/dfc73b72
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/dfc73b72
Branch: refs/heads/TINKERPOP-575
Commit: dfc73b7261152b5f5c5fd8b854415a9a0372d654
Parents: 017dffd
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 14:07:26 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/dfc73b72/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);