forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit37dc228
committed
Fix autovacuum launcher shutdown sequence
It was previously possible to have the launcher re-execute its main loopbefore shutting down if some other signal was received or an erroroccurred after getting SIGTERM, as reported by Qingqing Zhou.While investigating, Tom Lane further noticed that if autovacuum hadbeen disabled in the config file, it would misbehave by trying to starta new worker instead of bailing out immediately -- it would consideritself as invoked in emergency mode.Fix both problems by checking the shutdown flag in a few more places.These problems have existed since autovacuum was introduced, sobackpatch all the way back.1 parent6a560f5 commit37dc228
1 file changed
+13
-3
lines changedLines changed: 13 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
518 | 518 |
| |
519 | 519 |
| |
520 | 520 |
| |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
521 | 525 |
| |
522 | 526 |
| |
523 | 527 |
| |
| |||
552 | 556 |
| |
553 | 557 |
| |
554 | 558 |
| |
555 |
| - | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
556 | 563 |
| |
557 | 564 |
| |
558 |
| - | |
| 565 | + | |
| 566 | + | |
559 | 567 |
| |
560 | 568 |
| |
561 | 569 |
| |
| |||
570 | 578 |
| |
571 | 579 |
| |
572 | 580 |
| |
573 |
| - | |
| 581 | + | |
| 582 | + | |
574 | 583 |
| |
575 | 584 |
| |
576 | 585 |
| |
| |||
765 | 774 |
| |
766 | 775 |
| |
767 | 776 |
| |
| 777 | + | |
768 | 778 |
| |
769 | 779 |
| |
770 | 780 |
| |
|
0 commit comments
Comments
(0)