- Notifications
You must be signed in to change notification settings - Fork5k
Commitb96d3c3
committed
pgstat: Allow checksum errors to be reported in critical sections
For AIO we execute completion callbacks in critical sections (to ensure thatAIO can in the future be used for WAL, which in turn requires that we can callcompletion callbacks in critical sections, to get the resources for WALio). To report checksum errors a backend now has to callpgstat_prepare_report_checksum_failure(), before entering a critical section,which guarantees the relevant pgstats entry is in shared memory, the relevantDSM segment is mapped into the backend's memory and the address is known via aPgStat_EntryRef.Reviewed-by: Noah Misch <noah@leadboat.com>Discussion:https://postgr.es/m/wkjj4p2rmkevutkwc6tewoovdqznj6c6nvjmvii4oo5wmbh5sr@retq7d6uqs4j1 parent4244cf6 commitb96d3c3
File tree
5 files changed
+52
-3
lines changed- src
- backend
- backup
- catalog
- storage/buffer
- utils/activity
- include
5 files changed
+52
-3
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1817 | 1817 |
| |
1818 | 1818 |
| |
1819 | 1819 |
| |
| 1820 | + | |
1820 | 1821 |
| |
1821 | 1822 |
| |
1822 | 1823 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
524 | 524 |
| |
525 | 525 |
| |
526 | 526 |
| |
| 527 | + | |
527 | 528 |
| |
528 | 529 |
| |
529 | 530 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1590 | 1590 |
| |
1591 | 1591 |
| |
1592 | 1592 |
| |
| 1593 | + | |
1593 | 1594 |
| |
1594 | 1595 |
| |
1595 | 1596 |
| |
|
Lines changed: 48 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
133 | 133 |
| |
134 | 134 |
| |
135 | 135 |
| |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
136 | 158 |
| |
137 | 159 |
| |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
138 | 164 |
| |
139 | 165 |
| |
140 | 166 |
| |
| |||
147 | 173 |
| |
148 | 174 |
| |
149 | 175 |
| |
150 |
| - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
151 | 189 |
| |
152 |
| - | |
153 |
| - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
154 | 199 |
| |
155 | 200 |
| |
156 | 201 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
611 | 611 |
| |
612 | 612 |
| |
613 | 613 |
| |
| 614 | + | |
614 | 615 |
| |
615 | 616 |
| |
616 | 617 |
| |
|
0 commit comments
Comments
(0)