Skip to content

Commit

Permalink
(DOCSP-45012) Edits.
Browse files Browse the repository at this point in the history
  • Loading branch information
elyse-mdb committed Nov 20, 2024
1 parent ab493d6 commit 93742f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion source/includes/write/transactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ int main() {
}
};

auto update_employee_info = [&](mongocxx::client_session& session) {
auto transaction_operations = [&](mongocxx::client_session& session) {
auto& client = session.client();

// Define database and collection variables
Expand Down
15 changes: 6 additions & 9 deletions source/write/transactions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ start and commit a transaction that performs a multi-document insert operation:
.. literalinclude:: /includes/write/transactions.cpp
:language: cpp
:dedent:
:start-after: start-with-transaction
:end-before: end-with-transaction
:start-after: start-callback-api
:end-before: end-callback-api

.. tip::

Expand Down Expand Up @@ -156,11 +156,8 @@ logic to retry the transaction for transient errors and retry the commit for unk
.. literalinclude:: /includes/write/transactions.cpp
:language: cpp
:dedent:
:start-after: start-start-transaction
:end-before: end-start-transaction

Transaction Error Handling
--------------------------
:start-after: start-core-api
:end-before: end-core-api

Additional Information
----------------------
Expand All @@ -169,15 +166,15 @@ To learn more about the concepts discussed in this guide, see the following page
{+mdb-server+} manual:

- :manual:`Transactions </core/transactions/>`
- :manual:`Drivers API <//core/transactions-in-applications/>`
- :manual:`Server Sessions </reference/{+mdb-server+}-sessions/>`
- :manual:`Causal Consistency </core/read-isolation-consistency-recency/#causal-consistency>`
- :manual:`Transaction Error Handling </core/transactions-in-applications/#transaction-error-handling/>`

To learn more about ACID complicance, see the :website:`ACID Properties in Database Management Systems </basics/acid-transactions>`
guide on the MongoDB website.

To learn more about insert operations, see the
:ref:`Insert Documents <cpp-write-insert>` guide.
To learn more about insert operations, see the :ref:`Insert Documents <cpp-write-insert>` guide.

.. _api-docs-transaction:

Expand Down

0 comments on commit 93742f5

Please sign in to comment.