pgsql: In walsender, don't sleep if there's outstanding WAL waiting to
Heikki Linnakangas <heikki@postgresql.org>
From: heikki@postgresql.org (Heikki Linnakangas)
To: pgsql-committers@postgresql.org
Date: 2010-05-26T22:21:33Z
Lists: 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)