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

Commit06bfb80

Browse files
committed
Ignore WL_POSTMASTER_DEATH latch event in single user mode
Otherwise code that uses this will abort with an assertion failure,because postmaster_alive_fds are not initialized.Reported-by: tushar <tushar.ahuja@enterprisedb.com>
1 parent2e02136 commit06bfb80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/storage/ipc/latch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ WaitLatchOrSocket(volatile Latch *latch, int wakeEvents, pgsocket sock,
370370
AddWaitEventToSet(set,WL_LATCH_SET,PGINVALID_SOCKET,
371371
(Latch*)latch,NULL);
372372

373-
if (wakeEvents&WL_POSTMASTER_DEATH)
373+
if (wakeEvents&WL_POSTMASTER_DEATH&&IsUnderPostmaster)
374374
AddWaitEventToSet(set,WL_POSTMASTER_DEATH,PGINVALID_SOCKET,
375375
NULL,NULL);
376376

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp