Skip to content

Commit 05c91db

Browse files
committed
edits
1 parent 2a8be4d commit 05c91db

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

source/write/transactions.txt

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ meets an expectation of atomicity, consistency, isolation, and durability.
3535
MongoDB guarantees that the data involved in your transaction operations remains
3636
consistent, even if the operations encounter unexpected errors.
3737

38-
When using the {+driver-short+}, you can start a ``ClientSession`` by calling
38+
When using the {+driver-short+}, you can start a ``Mongo::Session`` by calling
3939
the ``start_session`` method on your client. Then, you can perform transactions
4040
within the session.
4141

4242
.. warning::
4343

44-
Use a ``ClientSession`` only in operations running on the ``MongoClient``
45-
that created it. Using a ``ClientSession`` with a different ``MongoClient``
44+
Use a ``Mongo::Session`` only in operations running on the ``Mongo::Client``
45+
that created it. Using a ``Mongo::Session`` with a different ``Mongo::Client``
4646
results in operation errors.
4747

4848
Methods
@@ -66,8 +66,7 @@ following table describes the methods you can use to manage a transaction:
6666
the session.
6767
|
6868
| You can set transaction options including read concern, write concern,
69-
and read preference by passing a ``TransactionOptions`` instance as a
70-
parameter.
69+
and read preference by passing a ``Hash`` as a parameter.
7170

7271
* - ``commit_transaction``
7372
- | Commits the active transaction for this session. This method returns an
@@ -109,13 +108,12 @@ actions:
109108

110109
.. sharedinclude:: dbx/transactions-parallelism.rst
111110

112-
.. replacement:: driver-specific-content
113-
114111
The {+driver-short+} does not support running parallel operations within a
115112
single transaction.
116113

117114
.. TODO:
118115
Replace content to use this wording when the bulk write guide is added:
116+
.. replacement:: driver-specific-content
119117
.. If you're using {+mdb-server+} v8.0 or later, you can perform
120118
.. write operations on multiple namespaces within a single transaction by using
121119
.. the ``bulk-write`` method. For more information, see the :ref:`<ruby-bulk-write>`

0 commit comments

Comments
 (0)