Skip to content

Commit a81cae4

Browse files
committed
RR feedback
1 parent fe1c19f commit a81cae4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

source/includes/write/transaction.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ fun main() {
3333
// Starts a client session
3434
client.startSession().use { session ->
3535
try {
36+
// Sets transaction options
3637
val txnOptions = TransactionOptions.builder()
3738
.readConcern(ReadConcern.LOCAL)
3839
.writeConcern(WriteConcern.MAJORITY)

source/write/transactions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ through the following steps:
122122
#. Use the ``withTransaction()`` method to start a transaction. The ``withTransaction()``
123123
method runs the insert operation and commits the transaction. If any
124124
operation results in errors, ``withTransaction()`` cancels the transaction.
125-
#. Close the connection to the server by using the ``client.close()`` method.
125+
#. Close the connection to the server by using the ``MongoClient.close()`` method.
126126

127127
.. literalinclude:: /includes/write/transaction.kt
128128
:start-after: start-transaction
@@ -149,7 +149,7 @@ To learn more about ACID compliance, see the :website:`What are ACID
149149
Properties in Database Management Systems? </basics/acid-transactions>`
150150
article on the MongoDB website.
151151

152-
.. _api-docs-transaction:
152+
.. _kotlin-sync-api-docs-transaction:
153153

154154
API Documentation
155155
~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)