Adjust signature of walrcv_receive hook.
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/replication/libpqwalreceiver/libpqwalreceiver.c | modified | +3 −3 |
| src/backend/replication/README | modified | +2 −2 |
| src/backend/replication/walreceiver.c | modified | +1 −1 |
| src/include/replication/walreceiver.h | modified | +1 −1 |