tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spmalle...@apache.org
Subject [37/50] incubator-tinkerpop git commit: Fixed bad logic in checking if traversal was locked when it arrived on the server
Date Thu, 17 Mar 2016 20:23:54 GMT
Fixed bad logic in checking if traversal was locked when it arrived on the server


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

Branch: refs/heads/TINKERPOP-575
Commit: d08a24c21fc8701656430bd7ee155c9f7d2e2afd
Parents: a8706f7
Author: Stephen Mallette <spmva@genoprime.com>
Authored: Thu Mar 17 08:22:31 2016 -0400
Committer: Stephen Mallette <spmva@genoprime.com>
Committed: Thu Mar 17 14:07:26 2016 -0400

----------------------------------------------------------------------
 .../gremlin/server/op/traversal/TraversalOpProcessor.java          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/d08a24c2/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/op/traversal/TraversalOpProcessor.java
----------------------------------------------------------------------
diff --git a/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/op/traversal/TraversalOpProcessor.java
b/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/op/traversal/TraversalOpProcessor.java
index ee81ade..d4baf94 100644
--- a/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/op/traversal/TraversalOpProcessor.java
+++ b/gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/op/traversal/TraversalOpProcessor.java
@@ -135,7 +135,7 @@ public class TraversalOpProcessor extends AbstractOpProcessor {
                             .statusMessage(ex.getMessage()).create());
         }
 
-        if (!traversal.asAdmin().isLocked())
+        if (traversal.asAdmin().isLocked())
             throw new OpProcessorException("Locked Traversals cannot be processed by the
server",
                     ResponseMessage.build(msg).code(ResponseStatusCode.SERVER_ERROR_SERIALIZATION)
                             .statusMessage("Locked Traversals cannot be processed by the
server").create());


Mime
View raw message