pgsql: Fix bug where pg_receivexlog goes into busy loop if -s option is

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix bug where pg_receivexlog goes into busy loop if -s option is
Date: 2014-07-24 06:45:37
Message-ID: E1XACmX-0001Bb-DE@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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,
74cbe966fe2d76de1d607d933c98c144dab58769.

Per report from Sawada Masahiko

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/78493b716802cbe632d36c85f0d7c3bdb708e045

Modified Files
--------------
src/bin/pg_basebackup/receivelog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2014-07-24 12:12:55 pgsql: docs: Improve documentation of \pset without arguments.
Previous Message Peter Eisentraut 2014-07-24 02:21:17 pgsql: Fix TAP installcheck tests when current directory name contains