diff options
| author | Tom Lane | 2016-04-14 17:49:37 +0000 |
|---|---|---|
| committer | Tom Lane | 2016-04-14 17:49:37 +0000 |
| commit | c2dc194bdbf5f84ceb433ed416eb389c1234ebc9 (patch) | |
| tree | f57a9efda68fc1872e536031d8be061570c91543 /src/include | |
| parent | 994f11257328e272a6a43d3de59ffa916cbfbe96 (diff) | |
Adjust signature of walrcv_receive hook.
Commit 314cbfc5da988eff 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.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/replication/walreceiver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/replication/walreceiver.h b/src/include/replication/walreceiver.h index 36bcb471720..c87e7a80ad1 100644 --- a/src/include/replication/walreceiver.h +++ b/src/include/replication/walreceiver.h @@ -145,7 +145,7 @@ extern PGDLLIMPORT walrcv_startstreaming_type walrcv_startstreaming; typedef void (*walrcv_endstreaming_type) (TimeLineID *next_tli); extern PGDLLIMPORT walrcv_endstreaming_type walrcv_endstreaming; -typedef int (*walrcv_receive_type) (char **buffer, int *wait_fd); +typedef int (*walrcv_receive_type) (char **buffer, pgsocket *wait_fd); extern PGDLLIMPORT walrcv_receive_type walrcv_receive; typedef void (*walrcv_send_type) (const char *buffer, int nbytes); |
