Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8cf4f71

Browse files
committed
pgbench: Fix handling of socket errors during benchmark.
Previously socket errors such as invalid socket or socket wait method failuresduring benchmark caused pgbench to exit with status 0. Instead, errors duringthe 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 COELHOReviewed-by: Kyotaro Horiguchi, Fujii MasaoDiscussion:https://postgr.es/m/TYCPR01MB5870057375ACA8A73099C649F5349@TYCPR01MB5870.jpnprd01.prod.outlook.com
1 parent3cc85d7 commit8cf4f71

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
@@ -6199,7 +6199,7 @@ main(int argc, char **argv)
61996199
#endif/* ENABLE_THREAD_SAFETY */
62006200

62016201
for (intj=0;j<thread->nstate;j++)
6202-
if (thread->state[j].state==CSTATE_ABORTED)
6202+
if (thread->state[j].state!=CSTATE_FINISHED)
62036203
exit_code=2;
62046204

62056205
/* aggregate thread level stats */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp