forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit34653bc
committed
Be more wary about shm_toc_lookup failure.
Commit445dbd8 basically missed the point of commitd466335,which was that we shouldn't allow shm_toc_lookup() failure to leadto a core dump or assertion crash, because the odds of such afailure should never be considered negligible. It's correct thatwe can't expect the PARALLEL_KEY_ERROR_QUEUE TOC entry to be thereif we have no workers. But if we have no workers, we're not goingto do anything in this function with the lookup result anyway,so let's just skip it. That lets the code use the easy-to-prove-safenoError=false case, rather than anything requiring effort to review.Back-patch to v10, like the previous commit.Discussion:https://postgr.es/m/3647.1517601675@sss.pgh.pa.us1 parent1597948 commit34653bc
1 file changed
+15
-12
lines changedLines changed: 15 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
388 | 388 |
| |
389 | 389 |
| |
390 | 390 |
| |
391 |
| - | |
392 |
| - | |
393 | 391 |
| |
394 | 392 |
| |
395 | 393 |
| |
| |||
409 | 407 |
| |
410 | 408 |
| |
411 | 409 |
| |
412 |
| - | |
413 |
| - | |
414 |
| - | |
415 |
| - | |
| 410 | + | |
416 | 411 |
| |
417 |
| - | |
418 |
| - | |
| 412 | + | |
| 413 | + | |
419 | 414 |
| |
420 |
| - | |
421 |
| - | |
422 |
| - | |
423 |
| - | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
424 | 427 |
| |
425 | 428 |
| |
426 | 429 |
| |
|
0 commit comments
Comments
(0)