diff --git a/source/tutorial/perform-two-phase-commits.txt b/source/tutorial/perform-two-phase-commits.txt index 281e6777ce5..da13e341676 100644 --- a/source/tutorial/perform-two-phase-commits.txt +++ b/source/tutorial/perform-two-phase-commits.txt @@ -275,7 +275,7 @@ the following: Recovering from Failure Scenarios ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -The most important part of the transaction procedure is not, the +The most important part of the transaction procedure is not the prototypical example above, but rather the possibility for recovering from the various failure scenarios when transactions do not complete as intended. This section will provide an overview of possible @@ -309,7 +309,7 @@ recovery operations every time the application starts to catch any unfinished transactions. You may also wish run the recovery operation at regular intervals to ensure that your data remains consistent. -The time required to reach a consistent state depends, on how long the +The time required to reach a consistent state depends on how long the application needs to recover each transaction. .. _2-phase-commits-rollback: @@ -438,7 +438,7 @@ before applying the transaction. If the application ``A1`` fails during transaction execution, you can use the :ref:`recovery procedures <2-phase-commits-recovery>`, but -applications should ensure that they "owns" the transaction before +applications should ensure that they "own" the transaction before applying the transaction. For example to resume pending jobs, use a query that resembles the following: @@ -461,13 +461,13 @@ Using Two-Phase Commits in Production Applications The example transaction above is intentionally simple. For example, it assumes that: -- it is always possible roll back operations an account. +- it is always possible to roll back operations an account. - account balances can hold negative values. Production implementations would likely be more complex. Typically -accounts need to information about current balance, pending credits, -pending debits. Then: +accounts need information about current balance, pending credits, +pending debits, etc. Then: - when your application :ref:`switches the transaction state to pending <2-phase-commits-step-2>` (i.e. step 2) it would also make