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

Commit2945a48

Browse files
committed
Make the standby server promptly handle interrupt signals.
This commit changes the startup process in the standby server so thatit handles the interrupt signals after waiting for wal_retrieve_retry_intervalon the latch and resetting it, before entering another wait on the latch.This change causes the standby server to promptly handle interrupt signals.Otherwise, previously, there was the case where the standby needs towait extra five seconds to shutdown when the shutdown request arrivedwhile the startup process was waiting for wal_retrieve_retry_intervalon the latch.Author: Fujii Masao, but implementation idea is from Soumyadeep ChakrabortyReviewed-by: Soumyadeep ChakrabortyDiscussion:https://postgr.es/m/9d7e6ab0-8a53-ddb9-63cd-289bcb25fe0e@oss.nttdata.com
1 parent7adb8fe commit2945a48

File tree

1 file changed

+3
-0
lines changed
  • src/backend/access/transam

1 file changed

+3
-0
lines changed

‎src/backend/access/transam/xlog.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12225,6 +12225,9 @@ WaitForWALToBecomeAvailable(XLogRecPtr RecPtr, bool randAccess,
1222512225
WAIT_EVENT_RECOVERY_RETRIEVE_RETRY_INTERVAL);
1222612226
ResetLatch(MyLatch);
1222712227
now=GetCurrentTimestamp();
12228+
12229+
/* Handle interrupt signals of startup process */
12230+
HandleStartupProcInterrupts();
1222812231
}
1222912232
last_fail_time=now;
1223012233
currentSource=XLOG_FROM_ARCHIVE;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp