forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita86bf60

Amit Kapila
Fix assertion failure when updating full_page_writes for checkpointer.
When the checkpointer receives a SIGHUP signal to update its configuration,it may need to update the shared memory for full_page_writes and need towrite a WAL record for it. Now, it is quite possible that the XLOGmachinery has not been initialized by that time and it will lead toassertion failure while doing that. Fix is to allow the initialization ofthe XLOG machinery outside critical section.This bug has been introduced by the commit2c03216 which added the XLOGmachinery initialization in RecoveryInProgress code path.Reported-by: Dilip KumarAuthor: Dilip KumarReviewed-by: Michael Paquier and Amit KapilaBackpatch-through: 9.5Discussion:https://postgr.es/m/CAFiTN-u4BA8KXcQUWDPNgaKAjDXC=C2whnzBM8TAcv=stckYUw@mail.gmail.com1 parent92a0342 commita86bf60
1 file changed
+9
-1
lines changedLines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9701 | 9701 |
| |
9702 | 9702 |
| |
9703 | 9703 |
| |
| 9704 | + | |
9704 | 9705 |
| |
9705 | 9706 |
| |
9706 | 9707 |
| |
| |||
9712 | 9713 |
| |
9713 | 9714 |
| |
9714 | 9715 |
| |
| 9716 | + | |
| 9717 | + | |
| 9718 | + | |
| 9719 | + | |
| 9720 | + | |
| 9721 | + | |
| 9722 | + | |
9715 | 9723 |
| |
9716 | 9724 |
| |
9717 | 9725 |
| |
| |||
9732 | 9740 |
| |
9733 | 9741 |
| |
9734 | 9742 |
| |
9735 |
| - | |
| 9743 | + | |
9736 | 9744 |
| |
9737 | 9745 |
| |
9738 | 9746 |
| |
|
0 commit comments
Comments
(0)