|
2 | 2 | use warnings;
|
3 | 3 | use PostgresNode;
|
4 | 4 | use TestLib;
|
5 |
| -use Test::Moretests=>12; |
| 5 | +use Test::Moretests=>11; |
6 | 6 |
|
7 | 7 | # Setup master node
|
8 | 8 | my$node_master = get_new_node("Candie");
|
|
28 | 28 | my$psql_out ='';
|
29 | 29 | my$psql_rc ='';
|
30 | 30 |
|
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 |
| - |
51 | 31 | ###############################################################################
|
52 | 32 | # Check that we can commit and abort tx after soft restart.
|
53 | 33 | # Here checkpoint happens before shutdown and no WAL replay will not occur
|
|