pgsql: Fix bug in collecting total_latencies from all threads in pgbenc

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix bug in collecting total_latencies from all threads in pgbenc
Date: 2015-07-28 08:35:15
Message-ID: E1ZK0Lz-0001hP-KH@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/b2ed8edeecd715c8a23ae462da843578e5cde7f4

Modified Files
--------------
src/bin/pgbench/pgbench.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2015-07-28 17:19:30 pgsql: Improve logging of TAP tests.
Previous Message Heikki Linnakangas 2015-07-28 06:11:01 pgsql: Another attempt at fixing memory leak in xlogreader.