Commit 59292f28 authored by Heikki Linnakangas's avatar Heikki Linnakangas

Flush CopyOutResponse when starting streaming in walsender, so that it's

not delayed until the first WAL record is sent.

Fujii Masao
parent 65cd8292
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/replication/walsender.c,v 1.12 2010/03/24 21:41:57 sriggs Exp $ * $PostgreSQL: pgsql/src/backend/replication/walsender.c,v 1.13 2010/03/26 12:23:34 heikki Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -263,6 +263,7 @@ WalSndHandshake(void) ...@@ -263,6 +263,7 @@ WalSndHandshake(void)
pq_sendbyte(&buf, 0); pq_sendbyte(&buf, 0);
pq_sendint(&buf, 0, 2); pq_sendint(&buf, 0, 2);
pq_endmessage(&buf); pq_endmessage(&buf);
pq_flush();
/* /*
* Initialize position to the received one, then the * Initialize position to the received one, then the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment