Commit 91c3613
committed
Fix assertion failure by an immediate shutdown.
In PM_WAIT_DEAD_END state, checkpointer process must be dead already.
But an immediate shutdown could make postmaster's state machine
transition to PM_WAIT_DEAD_END state even if checkpointer process is
still running, and which caused assertion failure. This bug was introduced
in commit 457d6cf.
This patch ensures that postmaster's state machine doesn't transition to
PM_WAIT_DEAD_END state in an immediate shutdown while checkpointer
process is running.1 parent f347f26 commit 91c3613
1 file changed
+9
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3328 | 3328 | | |
3329 | 3329 | | |
3330 | 3330 | | |
3331 | | - | |
3332 | | - | |
3333 | | - | |
3334 | | - | |
3335 | | - | |
3336 | | - | |
| 3331 | + | |
| 3332 | + | |
| 3333 | + | |
| 3334 | + | |
| 3335 | + | |
| 3336 | + | |
| 3337 | + | |
3337 | 3338 | | |
3338 | 3339 | | |
3339 | 3340 | | |
3340 | 3341 | | |
3341 | 3342 | | |
3342 | 3343 | | |
3343 | | - | |
| 3344 | + | |
| 3345 | + | |
3344 | 3346 | | |
3345 | 3347 | | |
3346 | 3348 | | |
| |||
0 commit comments