diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-07-29 12:52:57 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-07-29 12:52:57 -0400 |
commit | 80b346c2084928c11b6f9e495a7e9d559d96703d (patch) | |
tree | 5dd2346e4df57e9c97cb9ecf52de137943db7456 /src | |
parent | 3153b1a52f8f2d1efe67306257aec15aaaf9e94c (diff) | |
download | postgresql-80b346c2084928c11b6f9e495a7e9d559d96703d.tar.gz postgresql-80b346c2084928c11b6f9e495a7e9d559d96703d.zip |
Fix pq_putmessage_noblock() to not block.
An evident copy-and-pasteo in commit 2bd9e412f broke the non-blocking
aspect of pq_putmessage_noblock(), causing it to behave identically to
pq_putmessage(). That function is nowadays used only in walsender.c,
so that the net effect was to cause walsenders to hang up waiting for
the receiver in situations where they should not.
Kyotaro Horiguchi
Patch: <20160728.185228.58375982.horiguchi.kyotaro@lab.ntt.co.jp>
Diffstat (limited to 'src')
-rw-r--r-- | src/include/libpq/libpq.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/libpq/libpq.h b/src/include/libpq/libpq.h index 547d3b82349..18052cbfef8 100644 --- a/src/include/libpq/libpq.h +++ b/src/include/libpq/libpq.h @@ -43,7 +43,7 @@ extern PGDLLIMPORT PQcommMethods *PqCommMethods; #define pq_putmessage(msgtype, s, len) \ (PqCommMethods->putmessage(msgtype, s, len)) #define pq_putmessage_noblock(msgtype, s, len) \ - (PqCommMethods->putmessage(msgtype, s, len)) + (PqCommMethods->putmessage_noblock(msgtype, s, len)) #define pq_startcopyout() (PqCommMethods->startcopyout()) #define pq_endcopyout(errorAbort) (PqCommMethods->endcopyout(errorAbort)) |