mirror of
https://github.com/postgres/postgres.git
synced 2025-05-05 09:19:17 +03:00
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
This commit is contained in:
parent
2cf9cf5d7b
commit
8021334d37
@ -6794,7 +6794,7 @@ threadRun(void *arg)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
/* must be something wrong */
|
/* must be something wrong */
|
||||||
pg_log_fatal("%s() failed: %m", SOCKET_WAIT_METHOD);
|
pg_log_error("%s() failed: %m", SOCKET_WAIT_METHOD);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user