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

Commit113d359

Browse files
committed
Fix segmentation fault that commitac22929 caused.
Commitac22929 changed recoveryWakeupLatch so that it's reset toNULL at the end of recovery. This change could cause a segmentation faultin the buildfarm member 'elver'.Previously the latch was reset to NULL after calling ShutdownWalRcv().But there could be a window between ShutdownWalRcv() and the actualexit of walreceiver. If walreceiver set the latch during that window,the segmentation fault could happen.To fix the issue, this commit changes walreceiver so that it setsthe latch only when the latch has not been reset to NULL yet.Author: Fujii MasaoDiscussion:https://postgr.es/m/5c1f8a85-747c-7bf9-241e-dd467d8a3586@iki.fi
1 parent560564d commit113d359

File tree

1 file changed

+2
-1
lines changed
  • src/backend/access/transam

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12673,7 +12673,8 @@ CheckPromoteSignal(void)
1267312673
void
1267412674
WakeupRecovery(void)
1267512675
{
12676-
SetLatch(XLogCtl->recoveryWakeupLatch);
12676+
if (XLogCtl->recoveryWakeupLatch)
12677+
SetLatch(XLogCtl->recoveryWakeupLatch);
1267712678
}
1267812679

1267912680
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp