diff --git a/source/includes/write/transactions.cpp b/source/includes/write/transactions.cpp index 8118fdd5..2dd8cbeb 100644 --- a/source/includes/write/transactions.cpp +++ b/source/includes/write/transactions.cpp @@ -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 diff --git a/source/write/transactions.txt b/source/write/transactions.txt index 352eb444..fa7d6bf4 100644 --- a/source/write/transactions.txt +++ b/source/write/transactions.txt @@ -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:: @@ -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 ---------------------- @@ -169,6 +166,7 @@ To learn more about the concepts discussed in this guide, see the following page {+mdb-server+} manual: - :manual:`Transactions ` +- :manual:`Drivers API ` - :manual:`Server Sessions ` - :manual:`Causal Consistency ` - :manual:`Transaction Error Handling ` @@ -176,8 +174,7 @@ To learn more about the concepts discussed in this guide, see the following page To learn more about ACID complicance, see the :website:`ACID Properties in Database Management Systems ` guide on the MongoDB website. -To learn more about insert operations, see the -:ref:`Insert Documents ` guide. +To learn more about insert operations, see the :ref:`Insert Documents ` guide. .. _api-docs-transaction: