Content-Length: 260844 | pFad | http://github.com/postgrespro/postgres/commit/2acb7cc6b56c2b80029c202217e19553578456e9

B5 pgbench: Fix handling of socket errors during benchmark. · postgrespro/postgres@2acb7cc · GitHub
Skip to content

Commit 2acb7cc

Browse files
committed
pgbench: Fix handling of socket errors during benchmark.
Previously socket errors such as invalid socket or socket wait method failures during benchmark caused pgbench to exit with status 0. Instead, errors during the run should result in exit status 2. Back-patch to v12 where pgbench started reporting exit status. Original complaint and patch by Hayato Kuroda. Author: Yugo Nagata, Fabien COELHO Reviewed-by: Kyotaro Horiguchi, Fujii Masao Discussion: https://postgr.es/m/TYCPR01MB5870057375ACA8A73099C649F5349@TYCPR01MB5870.jpnprd01.prod.outlook.com
1 parent d336747 commit 2acb7cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pgbench/pgbench.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6553,7 +6553,7 @@ main(int argc, char **argv)
65536553
#endif /* ENABLE_THREAD_SAFETY */
65546554

65556555
for (int j = 0; j < thread->nstate; j++)
6556-
if (thread->state[j].state == CSTATE_ABORTED)
6556+
if (thread->state[j].state != CSTATE_FINISHED)
65576557
exit_code = 2;
65586558

65596559
/* aggregate thread level stats */

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/2acb7cc6b56c2b80029c202217e19553578456e9

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy