Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit399a198

Browse files
committed
fix fucken off-by-one error
1 parent338e9a9 commit399a198

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)

[8]ページ先頭

©2009-2025 Movatter.jp