Commit d7ea9193 authored by Magnus Hagander's avatar Magnus Hagander

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
parent 82e73ba0
...@@ -307,7 +307,7 @@ ReceiveXlogStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline, char *sysi ...@@ -307,7 +307,7 @@ ReceiveXlogStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline, char *sysi
char replybuf[sizeof(StandbyReplyMessage) + 1]; char replybuf[sizeof(StandbyReplyMessage) + 1];
StandbyReplyMessage *replymsg = (StandbyReplyMessage *) (replybuf + 1); StandbyReplyMessage *replymsg = (StandbyReplyMessage *) (replybuf + 1);
replymsg->write = blockpos; replymsg->write = InvalidXLogRecPtr;
replymsg->flush = InvalidXLogRecPtr; replymsg->flush = InvalidXLogRecPtr;
replymsg->apply = InvalidXLogRecPtr; replymsg->apply = InvalidXLogRecPtr;
replymsg->sendTime = now; replymsg->sendTime = now;
......
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