mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +03:00
Clean up WaitLatch calls that passed latch without WL_LATCH_SET
The 'latch' argument is ignored if WL_LATCH_SET is not given. Clarify these calls by not pointlessly passing MyLatch. Discussion: https://www.postgresql.org/message-id/391abe21-413e-4d91-a650-b663af49500c@iki.fi
This commit is contained in:
@@ -450,7 +450,7 @@ read_or_wait(Port *port, ssize_t len)
|
||||
*/
|
||||
if (ret <= 0)
|
||||
{
|
||||
WaitLatchOrSocket(MyLatch,
|
||||
WaitLatchOrSocket(NULL,
|
||||
WL_SOCKET_READABLE | WL_EXIT_ON_PM_DEATH,
|
||||
port->sock, 0, WAIT_EVENT_GSS_OPEN_SERVER);
|
||||
|
||||
@@ -668,7 +668,7 @@ secure_open_gssapi(Port *port)
|
||||
/* Wait and retry if we couldn't write yet */
|
||||
if (ret <= 0)
|
||||
{
|
||||
WaitLatchOrSocket(MyLatch,
|
||||
WaitLatchOrSocket(NULL,
|
||||
WL_SOCKET_WRITEABLE | WL_EXIT_ON_PM_DEATH,
|
||||
port->sock, 0, WAIT_EVENT_GSS_OPEN_SERVER);
|
||||
continue;
|
||||
|
||||
@@ -506,7 +506,7 @@ aloop:
|
||||
else
|
||||
waitfor = WL_SOCKET_WRITEABLE | WL_EXIT_ON_PM_DEATH;
|
||||
|
||||
(void) WaitLatchOrSocket(MyLatch, waitfor, port->sock, 0,
|
||||
(void) WaitLatchOrSocket(NULL, waitfor, port->sock, 0,
|
||||
WAIT_EVENT_SSL_OPEN_SERVER);
|
||||
goto aloop;
|
||||
case SSL_ERROR_SYSCALL:
|
||||
|
||||
Reference in New Issue
Block a user