Skip to content

Commit 2c7c465

Browse files
committed
Paquier review part#1
1 parent 5f8d8d4 commit 2c7c465

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/backend/access/transam/twophase.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,9 +1241,9 @@ ReadTwoPhaseFile(TransactionId xid, bool give_warnings)
12411241
* Reads 2PC data from xlog. During checkpoint this data will be moved to
12421242
* twophase files and ReadTwoPhaseFile should be used instead.
12431243
*
1244-
* Note clearly that this function accesses WAL during normal operation, similarly
1245-
* to the way WALSender or Logical Decoding would do. It does not run during
1246-
* crash recovery or standby processing.
1244+
* Note clearly that this function access WAL not only during recovery/replay
1245+
* but also during normal operation, similarly to the way WALSender or
1246+
* Logical Decoding would do.
12471247
*/
12481248
static void
12491249
XlogReadTwoPhaseData(XLogRecPtr lsn, char **buf, int *len)
@@ -1616,7 +1616,6 @@ XlogRedoFinishPrepared(TransactionId xid, bool isCommit)
16161616
PGPROC *proc;
16171617
PGXACT *pgxact;
16181618

1619-
/* During replay that lock isn't really necessary, but let's take it anyway */
16201619
LWLockAcquire(TwoPhaseStateLock, LW_EXCLUSIVE);
16211620
for (i = 0; i < TwoPhaseState->numPrepXacts; i++)
16221621
{

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# Checks for recovery_min_apply_delay
21
use strict;
32
use warnings;
43
use PostgresNode;
@@ -24,7 +23,7 @@
2423
$node_master->append_conf('postgresql.conf', qq(
2524
synchronous_standby_names = '*'
2625
));
27-
$node_master->restart;
26+
$node_master->psql('postgres', "select pg_reload_conf()");
2827

2928
my $psql_out = '';
3029
my $psql_rc = '';

0 commit comments

Comments
 (0)