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

Commit30f6136

Browse files
committed
Make walreceiver send a reply after receiving data but before flushing it.
It originally worked this way, but was changed by commita8a8a3e, since which time it's been impossiblefor walreceiver to ever send a reply with write_location and flush_locationset to different values.
1 parent01dd34d commit30f6136

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)

[8]ページ先頭

©2009-2025 Movatter.jp