OSDN Git Service

Merge branch 'pgrex90-base' into pgrex90
[pg-rex/syncrep.git] / src / backend / replication / walsender.c
index fa96810..a41365f 100644 (file)
@@ -352,8 +352,10 @@ WalSndHandshake(void)
                                                        SpinLockRelease(&walsnd->mutex);
                                                }
 
-                                               /* Send a CopyXLogResponse message, and start streaming */
+                                               /* Send a CopyBothResponse message, and start streaming */
                                                pq_beginmessage(&buf, 'W');
+                                               pq_sendbyte(&buf, 0);
+                                               pq_sendint(&buf, 0, 2);
                                                pq_endmessage(&buf);
                                                pq_flush();