Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4a5ebd4

Browse files
committed
replay_wait function has a trouble
1 parent a758f23 commit 4a5ebd4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/recovery/t/016_snapfs_simple_checks.pl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ ( $$ )
1616
$node_standby->poll_query_until('postgres',
1717
"SELECT (pg_last_wal_replay_lsn() - '$until_lsn'::pg_lsn) >= 0")
1818
or die "standby never caught up";
19+
20+
# the function does not work correctly
21+
$node_master->safe_psql( 'postgres', "select pg_sleep(1);" );
1922
}
2023

2124
my ( $ret, $stdout, $stderr );
@@ -55,11 +58,8 @@ ( $$ )
5558

5659
replay_wait( $node_master, $node_standby );
5760

58-
# replay_wait() does not work correctly
59-
my $master_out = $node_master->safe_psql( 'postgres', "select pg_sleep(1);" );
60-
6161
# Check for pg_control_snapshot() results
62-
$master_out = $node_master->safe_psql( 'postgres', "select * from pg_control_snapshot()" );
62+
my $master_out = $node_master->safe_psql( 'postgres', "select * from pg_control_snapshot()" );
6363
my $standby_out = $node_standby->safe_psql( 'postgres', "select * from pg_control_snapshot()" );
6464

6565
ok( $master_out eq '1|3|0', 'pg_control_snapshot() on master' );

0 commit comments

Comments
 (0)