1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-10 17:42:29 +03:00

Adjust signature of walrcv_receive hook.

Commit 314cbfc5da redefined the signature of this hook as
typedef int (*walrcv_receive_type) (char **buffer, int *wait_fd);

But in fact the type of the "wait_fd" variable ought to be pgsocket,
which is what WaitLatchOrSocket expects, and which is necessary if
we want to be able to assign PGINVALID_SOCKET to it on Windows.
So fix that.
This commit is contained in:
Tom Lane
2016-04-14 13:49:37 -04:00
parent 994f112573
commit c2dc194bdb
4 changed files with 7 additions and 7 deletions

View File

@@ -379,7 +379,7 @@ WalReceiverMain(void)
char *buf;
int len;
bool endofwal = false;
int wait_fd = PGINVALID_SOCKET;
pgsocket wait_fd = PGINVALID_SOCKET;
int rc;
/*