Skip to content

Commit 80b346c

Browse files
committed
Fix pq_putmessage_noblock() to not block.
An evident copy-and-pasteo in commit 2bd9e41 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>
1 parent 3153b1a commit 80b346c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/libpq/libpq.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ extern PGDLLIMPORT PQcommMethods *PqCommMethods;
4343
#define pq_putmessage(msgtype, s, len) \
4444
(PqCommMethods->putmessage(msgtype, s, len))
4545
#define pq_putmessage_noblock(msgtype, s, len) \
46-
(PqCommMethods->putmessage(msgtype, s, len))
46+
(PqCommMethods->putmessage_noblock(msgtype, s, len))
4747
#define pq_startcopyout() (PqCommMethods->startcopyout())
4848
#define pq_endcopyout(errorAbort) (PqCommMethods->endcopyout(errorAbort))
4949

0 commit comments

Comments
 (0)