Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit dbc6fcf

Browse files
committed
Set the write location in the pg_receivexlog status messages
This makes it possible for the master to track how much data has actually been written my pg_receivexlog - and not just how much has been sent towards it.
1 parent 0c4b468 commit dbc6fcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_basebackup/receivelog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ ReceiveXlogStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline, char *sysi
359359
char replybuf[sizeof(StandbyReplyMessage) + 1];
360360
StandbyReplyMessage *replymsg = (StandbyReplyMessage *) (replybuf + 1);
361361

362-
replymsg->write = InvalidXLogRecPtr;
362+
replymsg->write = blockpos;
363363
replymsg->flush = InvalidXLogRecPtr;
364364
replymsg->apply = InvalidXLogRecPtr;
365365
replymsg->sendTime = now;

0 commit comments

Comments
 (0)