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

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Fix bug in collecting total_latencies from all threads in pgbenc
Дата
Msg-id E1ZK0Lz-0001hP-KH@gemulon.postgresql.org
обсуждение исходный текст
Список 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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Another attempt at fixing memory leak in xlogreader.
Следующее
От: Andrew Dunstan
Дата:
Сообщение: pgsql: Improve logging of TAP tests.