]> granicus.if.org Git - postgresql/commit
Adjust signature of walrcv_receive hook.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 14 Apr 2016 17:49:37 +0000 (13:49 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 14 Apr 2016 17:49:37 +0000 (13:49 -0400)
commitc2dc194bdbf5f84ceb433ed416eb389c1234ebc9
treef57a9efda68fc1872e536031d8be061570c91543
parent994f11257328e272a6a43d3de59ffa916cbfbe96
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.
src/backend/replication/README
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
src/backend/replication/walreceiver.c
src/include/replication/walreceiver.h