- Notifications
You must be signed in to change notification settings - Fork28
Commit615704a
committed
More fixes for shutdown during recovery.
1. If we receive a fast shutdown request while in the PM_STARTUP state,process it just as we would in PM_RECOVERY, PM_HOT_STANDBY, or PM_RUN.Without this change, an early fast shutdown followed by Hot Standby causesthe database to get stuck in a state where a shutdown is pending (so no newconnections are allowed) but the shutdown request is never processed unlesswe end Hot Standby and enter normal running.2. Avoid removing the backup label file when a smart or fast shutdown occursduring recovery. It makes sense to do this once we've reached normal running,since we must be taking a backup which now won't be valid. But duringrecovery we must be recovering from a previously taken backup, and any backuplabel file is needed to restart recovery from the right place.Fujii Masao and Robert Haas1 parent20d6293 commit615704a
1 file changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| 290 | + | |
| 291 | + | |
290 | 292 | | |
291 | 293 | | |
292 | 294 | | |
| |||
2168 | 2170 | | |
2169 | 2171 | | |
2170 | 2172 | | |
2171 | | - | |
| 2173 | + | |
2172 | 2174 | | |
2173 | 2175 | | |
2174 | 2176 | | |
| |||
2370 | 2372 | | |
2371 | 2373 | | |
2372 | 2374 | | |
| 2375 | + | |
2373 | 2376 | | |
2374 | 2377 | | |
2375 | 2378 | | |
| |||
3028 | 3031 | | |
3029 | 3032 | | |
3030 | 3033 | | |
3031 | | - | |
| 3034 | + | |
| 3035 | + | |
| 3036 | + | |
| 3037 | + | |
| 3038 | + | |
| 3039 | + | |
3032 | 3040 | | |
3033 | | - | |
| 3041 | + | |
| 3042 | + | |
3034 | 3043 | | |
3035 | 3044 | | |
3036 | 3045 | | |
| |||
0 commit comments
Comments
(0)