From d7ea9193d18d29bea82b30604cdd087e90c5ee27 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Thu, 9 Feb 2012 14:12:49 +0100 Subject: [PATCH] Have pg_receivexlog always send an invalid log position in status messages This prevents pg_basebackup and pg_receivexlog from becoming a synchronous standby in case 'write' is used for synchronous_commit. Fujii Masao --- src/bin/pg_basebackup/receivelog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/pg_basebackup/receivelog.c b/src/bin/pg_basebackup/receivelog.c index 8ca3882a72..2e03c65fff 100644 --- a/src/bin/pg_basebackup/receivelog.c +++ b/src/bin/pg_basebackup/receivelog.c @@ -307,7 +307,7 @@ ReceiveXlogStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline, char *sysi char replybuf[sizeof(StandbyReplyMessage) + 1]; StandbyReplyMessage *replymsg = (StandbyReplyMessage *) (replybuf + 1); - replymsg->write = blockpos; + replymsg->write = InvalidXLogRecPtr; replymsg->flush = InvalidXLogRecPtr; replymsg->apply = InvalidXLogRecPtr; replymsg->sendTime = now; -- 2.40.0