Fix bug in collecting total_latencies from all threads in pgbench.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: b2ed8edeecd715c8a23ae462da843578e5cde7f4
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2015-07-28T08:30:23Z
Releases: 9.6.0
Fix bug in collecting total_latencies from all threads in pgbench.

This was broken in 1bc90f7a, which removed the thread-emulation. With modest
-j and -c settings the result were usually close enough that you wouldn't
notice it easily, but with a high enough thread count it would access
uninitialized memory and crash.

Per report from Andres Freund offlist.

Files

PathChange+/−
src/bin/pgbench/pgbench.c modified +2 −2