Commit 30f6136f authored by Robert Haas's avatar Robert Haas

Make walreceiver send a reply after receiving data but before flushing it.

It originally worked this way, but was changed by commit
a8a8a3e0, since which time it's been impossible
for walreceiver to ever send a reply with write_location and flush_location
set to different values.
parent 01dd34d5
...@@ -317,6 +317,9 @@ WalReceiverMain(void) ...@@ -317,6 +317,9 @@ WalReceiverMain(void)
while (walrcv_receive(0, &type, &buf, &len)) while (walrcv_receive(0, &type, &buf, &len))
XLogWalRcvProcessMsg(type, buf, len); XLogWalRcvProcessMsg(type, buf, len);
/* Let the master know that we received some data. */
XLogWalRcvSendReply();
/* /*
* If we've written some records, flush them to disk and let the * If we've written some records, flush them to disk and let the
* startup process and primary server know about them. * startup process and primary server know about them.
......
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