Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5db195f

Browse files
committed
Fix slowdown in TAP tests due to recent walreceiver change.
Commit05a7be9 changed the timing of the first reply sent by awalreceiver, 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 commit05a7be9 the initial reply was sent after 100ms, butthere'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 parente9e26b5 commit5db195f

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 (inti=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)

[8]ページ先頭

©2009-2025 Movatter.jp