pgsql: In walsender, don't sleep if there's outstanding WAL waiting to

From: heikki(at)postgresql(dot)org (Heikki Linnakangas)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: In walsender, don't sleep if there's outstanding WAL waiting to
Date: 2010-05-26 22:21:33
Message-ID: 20100526222133.5D8A47541D2@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Log Message:
-----------
In walsender, don't sleep if there's outstanding WAL waiting to be sent,
otherwise we effectively rate-limit the streaming as pointed out by
Simon Riggs. Also, send the WAL in smaller chunks, to respond to signals
more promptly.

Modified Files:
--------------
pgsql/src/backend/replication:
walsender.c (r1.20 -> r1.21)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/replication/walsender.c?r1=1.20&r2=1.21)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2010-05-26 22:34:50 pgsql: Thinko in previous commit: ensure that MAX_SEND_SIZE is always
Previous Message Tom Lane 2010-05-26 21:39:27 pgsql: Rearrange libpq's SSL initialization to simplify it and make it

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2010-05-26 22:23:05 Re: Synchronization levels in SR
Previous Message Simon Riggs 2010-05-26 22:00:41 Re: Synchronization levels in SR