mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Fix bug where pg_receivexlog goes into busy loop if -s option is set to 0.
The problem is that pg_receivexlog calls select(2) with timeout=0 and
goes into busy loop when --status-interval option is set to 0. This bug
was introduced by the commit,
74cbe966fe
.
Per report from Sawada Masahiko
This commit is contained in:
parent
455044d55a
commit
78493b7168
@ -1094,7 +1094,7 @@ CopyStreamReceive(PGconn *conn, long timeout, char **buffer)
|
||||
* No data available. Wait for some to appear, but not longer than
|
||||
* the specified timeout, so that we can ping the server.
|
||||
*/
|
||||
if (timeout > 0)
|
||||
if (timeout != 0)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user