Skip to content

Commit 399a198

Browse files
committed
fix fucken off-by-one error
1 parent 338e9a9 commit 399a198

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

contrib/postgres_fdw/t/001_bank_check.pl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
my $shard1 = get_new_node("shard1");
1818
$shard1->init;
1919
$shard1->append_conf('postgresql.conf', qq(
20-
max_prepared_transactions = 300
20+
max_prepared_transactions = 30
2121
log_checkpoints = true
2222
shared_preload_libraries = 'pg_tsdtm'
2323
));
@@ -26,7 +26,7 @@
2626
my $shard2 = get_new_node("shard2");
2727
$shard2->init;
2828
$shard2->append_conf('postgresql.conf', qq(
29-
max_prepared_transactions = 300
29+
max_prepared_transactions = 30
3030
log_checkpoints = true
3131
shared_preload_libraries = 'pg_tsdtm'
3232
));
@@ -52,8 +52,8 @@
5252
diag("done $host $port");
5353
}
5454

55-
$shard1->psql('postgres', "insert into accounts select 2*id-1, 0 from generate_series(1, 10000) as id;");
56-
$shard2->psql('postgres', "insert into accounts select 2*id, 0 from generate_series(1, 10000) as id;");
55+
$shard1->psql('postgres', "insert into accounts select 2*id-1, 0 from generate_series(1, 10010) as id;");
56+
$shard2->psql('postgres', "insert into accounts select 2*id, 0 from generate_series(1, 10010) as id;");
5757

5858
diag( $master->connstr() );
5959
# sleep(3600);
@@ -81,6 +81,7 @@
8181
$oldtotal = $total;
8282
diag("Isolation error. Total = $total");
8383
}
84+
diag("Total = $total");
8485
}
8586

8687
$master->pgbench_await($pgb_handle);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy