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

not delayed until the first WAL record is sent.

Fujii Masao
This commit is contained in:
Heikki Linnakangas 2010-03-26 12:23:34 +00:00
parent 65cd829232
commit 59292f28ca
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,7 @@
*
*
* 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)
pq_sendbyte(&buf, 0);
pq_sendint(&buf, 0, 2);
pq_endmessage(&buf);
pq_flush();
/*
* Initialize position to the received one, then the