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

Commit7aeff9f

Browse files
committed
Ensure walsenders can be SIGTERMed while in non-walsender code
In oder to exit on SIGTERM when in non-walsender code,such as do_pg_stop_backup(), we need to set the interruptvariables that are used there, and not just the walsenderlocal ones.
1 parent1cb018d commit7aeff9f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎src/backend/replication/walsender.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,6 +1302,13 @@ WalSndShutdownHandler(SIGNAL_ARGS)
13021302
if (MyWalSnd)
13031303
SetLatch(&MyWalSnd->latch);
13041304

1305+
/*
1306+
* Set the standard (non-walsender) state as well, so that we can
1307+
* abort things like do_pg_stop_backup().
1308+
*/
1309+
InterruptPending= true;
1310+
ProcDiePending= true;
1311+
13051312
errno=save_errno;
13061313
}
13071314

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp