Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc8966a9

Browse files
committed
Fix pq_putmessage_noblock() to not block.
An evident copy-and-pasteo in commit2bd9e41 broke the non-blockingaspect of pq_putmessage_noblock(), causing it to behave identically topq_putmessage(). That function is nowadays used only in walsender.c,so that the net effect was to cause walsenders to hang up waiting forthe receiver in situations where they should not.Kyotaro HoriguchiPatch: <20160728.185228.58375982.horiguchi.kyotaro@lab.ntt.co.jp>
1 parent67fb608 commitc8966a9

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
@@ -42,7 +42,7 @@ extern PGDLLIMPORT PQcommMethods *PqCommMethods;
4242
#definepq_putmessage(msgtype,s,len) \
4343
(PqCommMethods->putmessage(msgtype, s, len))
4444
#definepq_putmessage_noblock(msgtype,s,len) \
45-
(PqCommMethods->putmessage(msgtype, s, len))
45+
(PqCommMethods->putmessage_noblock(msgtype, s, len))
4646
#definepq_startcopyout() (PqCommMethods->startcopyout())
4747
#definepq_endcopyout(errorAbort) (PqCommMethods->endcopyout(errorAbort))
4848

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp