File tree Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change 22use warnings;
33use PostgresNode;
44use TestLib;
5- use Test::More tests => 12 ;
5+ use Test::More tests => 11 ;
66
77# Setup master node
88my $node_master = get_new_node(" Candie" );
2828my $psql_out = ' ' ;
2929my $psql_rc = ' ' ;
3030
31-
32-
33-
34-
35- $node_master -> psql(' postgres' , "
36- begin;
37- insert into t values (1);
38- prepare transaction 'x';
39- " );
40- $node_slave -> teardown_node;
41- $node_master -> psql(' postgres' ," commit prepared 'x'" );
42- $node_slave -> start;
43- $node_slave -> psql(' postgres' ," select count(*) from pg_prepared_xacts" , stdout => \$psql_out );
44- is($psql_out , ' 0' , " Commit prepared on master while slave is down." );
45-
46-
47-
48-
49-
50-
5131# ##############################################################################
5232# Check that we can commit and abort tx after soft restart.
5333# Here checkpoint happens before shutdown and no WAL replay will not occur
You can’t perform that action at this time.
0 commit comments