Skip to content

Commit 3cc85d7

Browse files
committed
pgbench: Correct log level of message output when socket wait method fails.
The failure of socket wait method like "select()" doesn't terminate pgbench. So the log level of error message when that failure happens should be ERROR. But previously FATAL was used in that case. Back-patch to v13 where pgbench started using common logging API. Author: Yugo Nagata, Fabien COELHO Reviewed-by: Kyotaro Horiguchi, Fujii Masao Discussion: https://postgr.es/m/20210617005934.8bd37bf72efd5f1b38e6f482@sraoss.co.jp
1 parent cf26a8d commit 3cc85d7

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
@@ -6421,7 +6421,7 @@ threadRun(void *arg)
64216421
continue;
64226422
}
64236423
/* must be something wrong */
6424-
pg_log_fatal("%s() failed: %m", SOCKET_WAIT_METHOD);
6424+
pg_log_error("%s() failed: %m", SOCKET_WAIT_METHOD);
64256425
goto done;
64266426
}
64276427
}

0 commit comments

Comments
 (0)