mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
Fix comment in fe-connect.c about PQping and pg_ctl
Since f13ea95f
, pg_ctl does not use PQping(), but one comment did not
get the call.
Author: Euler Taveira
Discussion: https://postgr.es/m/4b1deb4a-2771-416d-9710-ccd2fa66f058@www.fastmail.com
This commit is contained in:
parent
353aa01687
commit
fb0745fa0d
@ -3919,8 +3919,7 @@ internal_ping(PGconn *conn)
|
||||
return PQPING_NO_RESPONSE;
|
||||
|
||||
/*
|
||||
* Report PQPING_REJECT if server says it's not accepting connections. (We
|
||||
* distinguish this case mainly for the convenience of pg_ctl.)
|
||||
* Report PQPING_REJECT if server says it's not accepting connections.
|
||||
*/
|
||||
if (strcmp(conn->last_sqlstate, ERRCODE_CANNOT_CONNECT_NOW) == 0)
|
||||
return PQPING_REJECT;
|
||||
|
Loading…
Reference in New Issue
Block a user