- Notifications
You must be signed in to change notification settings - Fork5.3k
Commit1165a93
committed
Teach DSM registry to ERROR if attaching to an uninitialized entry.
If DSM entry initialization fails, backends could try to use anuninitialized DSM segment, DSA, or dshash table (since the entry isstill added to the registry). To fix, keep track of whetherinitialization completed, and ERROR if a backend tries to attach toan uninitialized entry. We could instead retry initialization asneeded, but that seemed complicated, error prone, and unlikely tohelp most cases. Furthermore, such problems probably indicate acoding error.Reported-by: Alexander Lakhin <exclusion@gmail.com>Reviewed-by: Sami Imseih <samimseih@gmail.com>Discussion:https://postgr.es/m/dd36d384-55df-4fc2-825c-5bc56c950fa9%40gmail.comBackpatch-through: 171 parent0bdc777 commit1165a93
1 file changed
+30
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| |||
216 | 217 | | |
217 | 218 | | |
218 | 219 | | |
| 220 | + | |
219 | 221 | | |
220 | 222 | | |
221 | 223 | | |
| |||
228 | 230 | | |
229 | 231 | | |
230 | 232 | | |
| 233 | + | |
| 234 | + | |
231 | 235 | | |
232 | 236 | | |
233 | 237 | | |
234 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
235 | 244 | | |
236 | 245 | | |
237 | | - | |
| 246 | + | |
| 247 | + | |
238 | 248 | | |
239 | 249 | | |
240 | 250 | | |
| |||
297 | 307 | | |
298 | 308 | | |
299 | 309 | | |
| 310 | + | |
300 | 311 | | |
301 | 312 | | |
302 | 313 | | |
| |||
308 | 319 | | |
309 | 320 | | |
310 | 321 | | |
| 322 | + | |
| 323 | + | |
311 | 324 | | |
312 | 325 | | |
313 | 326 | | |
314 | | - | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
315 | 333 | | |
316 | 334 | | |
317 | 335 | | |
| |||
372 | 390 | | |
373 | 391 | | |
374 | 392 | | |
| 393 | + | |
375 | 394 | | |
376 | 395 | | |
377 | 396 | | |
| |||
389 | 408 | | |
390 | 409 | | |
391 | 410 | | |
| 411 | + | |
| 412 | + | |
392 | 413 | | |
393 | 414 | | |
394 | 415 | | |
395 | | - | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
396 | 422 | | |
397 | 423 | | |
398 | 424 | | |
| |||
0 commit comments
Comments
(0)