From 3dff2b75624a369afd625fbc3af201c89b8cd773 Mon Sep 17 00:00:00 2001 From: Spencer T Brody Date: Thu, 20 Mar 2014 15:06:42 -0400 Subject: [PATCH 1/4] Rm extra comma --- source/tutorial/perform-two-phase-commits.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/tutorial/perform-two-phase-commits.txt b/source/tutorial/perform-two-phase-commits.txt index 281e6777ce5..bee73930b8c 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 From c3d9067197082558e9c9aef90a967d671d2f3c41 Mon Sep 17 00:00:00 2001 From: Spencer T Brody Date: Thu, 20 Mar 2014 15:11:16 -0400 Subject: [PATCH 2/4] Rm another extra comma --- source/tutorial/perform-two-phase-commits.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/tutorial/perform-two-phase-commits.txt b/source/tutorial/perform-two-phase-commits.txt index bee73930b8c..a5d8632067e 100644 --- a/source/tutorial/perform-two-phase-commits.txt +++ b/source/tutorial/perform-two-phase-commits.txt @@ -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: From b50df84b334e25fa40c1339931e849acb46e854a Mon Sep 17 00:00:00 2001 From: Spencer T Brody Date: Thu, 20 Mar 2014 15:18:55 -0400 Subject: [PATCH 3/4] owns->own --- source/tutorial/perform-two-phase-commits.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/tutorial/perform-two-phase-commits.txt b/source/tutorial/perform-two-phase-commits.txt index a5d8632067e..965346c92d4 100644 --- a/source/tutorial/perform-two-phase-commits.txt +++ b/source/tutorial/perform-two-phase-commits.txt @@ -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: From 1a86c3459a4101d8dd642d1c5ef706772cf75540 Mon Sep 17 00:00:00 2001 From: Spencer T Brody Date: Thu, 20 Mar 2014 15:22:25 -0400 Subject: [PATCH 4/4] Small grammar fixes --- source/tutorial/perform-two-phase-commits.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/tutorial/perform-two-phase-commits.txt b/source/tutorial/perform-two-phase-commits.txt index 965346c92d4..da13e341676 100644 --- a/source/tutorial/perform-two-phase-commits.txt +++ b/source/tutorial/perform-two-phase-commits.txt @@ -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