pgsql: Adjust signature of walrcv_receive hook.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Adjust signature of walrcv_receive hook.
Date: 2016-04-14 17:49:42
Message-ID: E1aqlOg-0005z0-SL@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/c2dc194bdbf5f84ceb433ed416eb389c1234ebc9

Modified Files
--------------
src/backend/replication/README | 4 ++--
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c | 6 +++---
src/backend/replication/walreceiver.c | 2 +-
src/include/replication/walreceiver.h | 2 +-
4 files changed, 7 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Pavel Stehule 2016-04-14 18:00:23 Re: [COMMITTERS] pgsql: Code cleanup in the wake of recent LWLock refactoring.
Previous Message Tom Lane 2016-04-14 16:18:19 pgsql: Adjust datatype of ReplicationState.acquired_by.