Skip to content

Commit 591841e

Browse files
committed
cleanup
1 parent e82a858 commit 591841e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/backend/access/transam/twophase.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1302,7 +1302,7 @@ StandbyTransactionIdIsPrepared(TransactionId xid)
13021302
return false; /* nothing to do */
13031303

13041304
/*
1305-
* At first check prepared tx that have no saved state files.
1305+
* At first check prepared tx that wasn't yet moved to disk.
13061306
*/
13071307
LWLockAcquire(TwoPhaseStateLock, LW_SHARED);
13081308
for (i = 0; i < TwoPhaseState->numPrepXacts; i++)

src/test/recovery/t/006_twophase.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
###############################################################################
5555
# Check that we can commit and abort after hard restart.
56-
# On startup WAL replay will re-create memory for global transactions that
56+
# On startup WAL replay will re-create memory for global transactions that
5757
# happend after the last checkpoint.
5858
###############################################################################
5959

@@ -94,7 +94,7 @@
9494
is($psql_rc, '0', 'Replay several tx with same name.');
9595

9696
###############################################################################
97-
# Check that WAL replay will cleanup it's memory state and release locks while
97+
# Check that WAL replay will cleanup it's memory state and release locks while
9898
# replaying commit.
9999
###############################################################################
100100

@@ -169,7 +169,7 @@
169169

170170
###############################################################################
171171
# Check that we restore prepared xacts after slave soft restart while master is
172-
# down. Since slave knows that master is down it uses different code path on
172+
# down. Since slave knows that master is down it uses different code path on
173173
# start.
174174
###############################################################################
175175

0 commit comments

Comments
 (0)