File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1241,9 +1241,9 @@ ReadTwoPhaseFile(TransactionId xid, bool give_warnings)
1241
1241
* Reads 2PC data from xlog. During checkpoint this data will be moved to
1242
1242
* twophase files and ReadTwoPhaseFile should be used instead.
1243
1243
*
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 .
1247
1247
*/
1248
1248
static void
1249
1249
XlogReadTwoPhaseData (XLogRecPtr lsn , char * * buf , int * len )
@@ -1616,7 +1616,6 @@ XlogRedoFinishPrepared(TransactionId xid, bool isCommit)
1616
1616
PGPROC * proc ;
1617
1617
PGXACT * pgxact ;
1618
1618
1619
- /* During replay that lock isn't really necessary, but let's take it anyway */
1620
1619
LWLockAcquire (TwoPhaseStateLock , LW_EXCLUSIVE );
1621
1620
for (i = 0 ; i < TwoPhaseState -> numPrepXacts ; i ++ )
1622
1621
{
Original file line number Diff line number Diff line change 1
- # Checks for recovery_min_apply_delay
2
1
use strict;
3
2
use warnings;
4
3
use PostgresNode;
24
23
$node_master -> append_conf(' postgresql.conf' , qq(
25
24
synchronous_standby_names = '*'
26
25
) );
27
- $node_master -> restart ;
26
+ $node_master -> psql( ' postgres ' , " select pg_reload_conf() " ) ;
28
27
29
28
my $psql_out = ' ' ;
30
29
my $psql_rc = ' ' ;
You can’t perform that action at this time.
0 commit comments