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/01/25 13:26:04 UTC
incubator-tinkerpop git commit: Fixed bug in documentation around
threaded transactions.
Repository: incubator-tinkerpop
Updated Branches:
refs/heads/master 1d8642b86 -> 2a0616b84
Fixed bug in documentation around threaded transactions.
Docs were referencing some very old syntax with newThreadedTx() when it should have been createThreadedTx().
Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/2a0616b8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/2a0616b8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/2a0616b8
Branch: refs/heads/master
Commit: 2a0616b84061be7917345e9b26938ce244682e1d
Parents: 1d8642b
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Mon Jan 25 07:24:46 2016 -0500
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Mon Jan 25 07:24:46 2016 -0500
----------------------------------------------------------------------
docs/src/reference/the-graph.asciidoc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/2a0616b8/docs/src/reference/the-graph.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/reference/the-graph.asciidoc b/docs/src/reference/the-graph.asciidoc
index e562eeb..bc914b5 100644
--- a/docs/src/reference/the-graph.asciidoc
+++ b/docs/src/reference/the-graph.asciidoc
@@ -340,7 +340,7 @@ different threads operating within the same transaction, the above code could be
[source,java]
----
-Graph threaded = graph.tx().newThreadedTx();
+Graph threaded = graph.tx().createThreadedTx();
threaded.addVertex("name","stephen");
Thread t1 = new Thread(() -> {
@@ -360,7 +360,7 @@ t2.join()
threaded.tx().commit();
----
-In the above case, the call to `graph.tx().newThreadedTx()` creates a new `Graph` instance that is unbound from the
+In the above case, the call to `graph.tx().createThreadedTx()` creates a new `Graph` instance that is unbound from the
`ThreadLocal` transaction, thus allowing each thread to operate on it in the same context. In this case, there would
be three separate vertices persisted to the `Graph`.