Skip to content

Commit 5db195f

Browse files
committed
Fix slowdown in TAP tests due to recent walreceiver change.
Commit 05a7be9 changed the timing of the first reply sent by a walreceiver, which caused a few TAP tests that call wait_for_catchup() when they haven't actually streamed anything yet to wait ~10 seconds (wal_receiver_status_interval). Before commit 05a7be9 the initial reply was sent after 100ms, but there's no reason not to send it immediately as a slight improvement. Do the same for HS feedback for consistency. Author: Nathan Bossart <nathandbossart@gmail.com> Discussion: https://postgr.es/m/742545.1668377284%40sss.pgh.pa.us
1 parent e9e26b5 commit 5db195f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/backend/replication/walreceiver.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,10 @@ WalReceiverMain(void)
433433
for (int i = 0; i < NUM_WALRCV_WAKEUPS; ++i)
434434
WalRcvComputeNextWakeup(i, now);
435435

436+
/* Send initial reply/feedback messages. */
437+
XLogWalRcvSendReply(true, false);
438+
XLogWalRcvSendHSFeedback(true);
439+
436440
/* Loop until end-of-streaming or error */
437441
for (;;)
438442
{

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