Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d336747

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 070d2e1 commit d336747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pgbench/pgbench.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -6784,7 +6784,7 @@ threadRun(void *arg)
67846784
continue;
67856785
}
67866786
/* must be something wrong */
6787-
pg_log_fatal("%s() failed: %m", SOCKET_WAIT_METHOD);
6787+
pg_log_error("%s() failed: %m", SOCKET_WAIT_METHOD);
67886788
goto done;
67896789
}
67906790
}

0 commit comments

Comments
 (0)