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
This commit is contained in:
parent
82e73ba0d1
commit
d7ea9193d1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user