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

Commitab07a04

Browse files
author
Marina Polyakova
committed
Fix Pgbench: serialization/deadlock failure record in the stats
A failure should be reported only once, and not after a failure and after theend of a failed transaction block.
1 parentaf9ac47 commitab07a04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/bin/pgbench/pgbench.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2150,7 +2150,8 @@ doCustom(TState *thread, CState *st, StatsData *agg)
21502150
}
21512151
}
21522152

2153-
if (st->last_begin_state->attempts_number==
2153+
if ((serialization_failure||deadlock_failure)&&
2154+
st->last_begin_state->attempts_number==
21542155
max_attempts_number)
21552156
{
21562157
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp