Skip to content

Commit be82295

Browse files
committed
DOCS-12111: read pref and txns
1 parent 520eb06 commit be82295

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

source/core/transactions.txt

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -256,22 +256,11 @@ Multi-document transactions are atomic:
256256
data changes made in the transaction are discarded without ever
257257
becoming visible.
258258

259-
Read Preference
260-
---------------
261-
262-
.. include:: /includes/extracts/transactions-read-pref.rst
263259

264260
.. _transaction-options:
265261

266-
Transaction Options (Read Concern/Write Concern)
267-
------------------------------------------------
268-
269-
.. code-block:: javascript
270-
271-
session.startTransaction( {
272-
readConcern: { level: <level> },
273-
writeConcern: { w: <value>, j: <boolean>, wtimeout: <number> }
274-
} );
262+
Transaction Options (Read Concern/Write Concern/Read Preference)
263+
----------------------------------------------------------------
275264

276265
.. _txn-read-concern:
277266

@@ -355,6 +344,12 @@ transaction commit at the transaction start.
355344
:readconcern:`"majority"` read concern provides no guarantees that
356345
read operations read majority-committed data.
357346

347+
Read Preference
348+
~~~~~~~~~~~~~~~
349+
350+
.. include:: /includes/extracts/transactions-read-pref.rst
351+
352+
358353
Transactions and Locks
359354
----------------------
360355

0 commit comments

Comments
 (0)