forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb9e5249
committed
Fix using injection points at backend startup in EXEC_BACKEND mode
Commit86db52a changed the locking of injection points to use onlyatomic ops and spinlocks, to make it possible to define injectionpoints in processes that don't have a PGPROC entry (yet). However, itdidn't work in EXEC_BACKEND mode, because the pointer to shared memoryarea was not initialized until the process "attaches" to all theshared memory structs. To fix, pass the pointer to the child processalong with other global variables that need to be set up early.Backpatch-through: 171 parentc95d215 commitb9e5249
File tree
3 files changed
+17
-1
lines changed- src
- backend
- postmaster
- utils/misc
- include/utils
3 files changed
+17
-1
lines changedLines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
| 66 | + | |
66 | 67 |
| |
67 | 68 |
| |
68 | 69 |
| |
| |||
104 | 105 |
| |
105 | 106 |
| |
106 | 107 |
| |
| 108 | + | |
| 109 | + | |
| 110 | + | |
107 | 111 |
| |
108 | 112 |
| |
109 | 113 |
| |
| |||
710 | 714 |
| |
711 | 715 |
| |
712 | 716 |
| |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
713 | 721 |
| |
714 | 722 |
| |
715 | 723 |
| |
| |||
969 | 977 |
| |
970 | 978 |
| |
971 | 979 |
| |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
972 | 984 |
| |
973 | 985 |
| |
974 | 986 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
85 | 85 |
| |
86 | 86 |
| |
87 | 87 |
| |
88 |
| - | |
| 88 | + | |
89 | 89 |
| |
90 | 90 |
| |
91 | 91 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
46 | 50 |
|
0 commit comments
Comments
(0)