Skip to content

Commit 30f6136

Browse files
committed
Make walreceiver send a reply after receiving data but before flushing it.
It originally worked this way, but was changed by commit a8a8a3e, since which time it's been impossible for walreceiver to ever send a reply with write_location and flush_location set to different values.
1 parent 01dd34d commit 30f6136

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backend/replication/walreceiver.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,9 @@ WalReceiverMain(void)
317317
while (walrcv_receive(0, &type, &buf, &len))
318318
XLogWalRcvProcessMsg(type, buf, len);
319319

320+
/* Let the master know that we received some data. */
321+
XLogWalRcvSendReply();
322+
320323
/*
321324
* If we've written some records, flush them to disk and let the
322325
* startup process and primary server know about them.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy