Обсуждение: pgsql: Fix bug in collecting total_latencies from all threads in pgbenc

Поиск
Список
Период
Сортировка

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

От
Heikki Linnakangas
Дата:
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(-)