Skip to content

Commit f76ad49

Browse files
author
Marina Polyakova
committed
Pgbench Fix attempts stats
1 parent e93a903 commit f76ad49

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bin/pgbench/pgbench.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2178,6 +2178,7 @@ doCustom(TState *thread, CState *st, StatsData *agg)
21782178
thread->stats.serialization_failures++;
21792179
if (st->deadlock_failure)
21802180
thread->stats.deadlock_failures++;
2181+
mergeSimpleStats(&thread->stats.attempts, &st->attempts);
21812182
}
21822183
}
21832184

@@ -2701,6 +2702,7 @@ processXactStats(TState *thread, CState *st, instr_time *now,
27012702
thread->stats.serialization_failures++;
27022703
if (st->deadlock_failure)
27032704
thread->stats.deadlock_failures++;
2705+
mergeSimpleStats(&thread->stats.attempts, &st->attempts);
27042706
}
27052707

27062708
if (use_log)

0 commit comments

Comments
 (0)