8000 Set the write location in the pg_receivexlog status messages · jcsston/postgres@d3341d4 · GitHub
[go: up one dir, main page]

Skip to content

Commit d3341d4

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 8c8adf4 commit d3341d4

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;
< 4D73 /td>362+
replymsg->write = blockpos;
363363
replymsg->flush = InvalidXLogRecPtr;
364364
replymsg->apply = InvalidXLogRecPtr;
365365
replymsg->sendTime = now;

0 commit comments

Comments
 (0)
0