- Notifications
You must be signed in to change notification settings - Fork5
Commit8f5d65e
committed
Treat a WAL sender process that hasn't started streaming yet as a regular
backend, as far as the postmaster shutdown logic is concerned. That means,fast shutdown will wait for WAL sender processes to exit before signalingbgwriter to finish. This avoids race conditions between a base backup stoppingor starting, and bgwriter writing the shutdown checkpoint WAL record. We don'twant e.g the end-of-backup WAL record to be written after the shutdowncheckpoint.1 parentfcd810c commit8f5d65e
File tree
3 files changed
+32
-2
lines changed- src
- backend
- replication
- storage/ipc
- include/storage
3 files changed
+32
-2
lines changedLines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
315 | 315 |
| |
316 | 316 |
| |
317 | 317 |
| |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
318 | 328 |
| |
319 | 329 |
| |
320 | 330 |
| |
|
Lines changed: 21 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
| 52 | + | |
| 53 | + | |
52 | 54 |
| |
53 | 55 |
| |
54 | 56 |
| |
| |||
225 | 227 |
| |
226 | 228 |
| |
227 | 229 |
| |
228 |
| - | |
229 |
| - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
230 | 249 |
| |
231 | 250 |
| |
232 | 251 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
| 51 | + | |
51 | 52 |
| |
52 | 53 |
| |
53 | 54 |
|
0 commit comments
Comments
(0)