Fix bug in collecting total_latencies from all threads in pgbench.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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
| Path | Change | +/− |
|---|---|---|
| src/bin/pgbench/pgbench.c | modified | +2 −2 |