forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit957ff08
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 parentbf641d3 commit957ff08
1 file changed
+15
-12
lines changedLines changed: 15 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
434 | 434 |
| |
435 | 435 |
| |
436 | 436 |
| |
437 |
| - | |
438 |
| - | |
439 | 437 |
| |
440 | 438 |
| |
441 | 439 |
| |
| |||
456 | 454 |
| |
457 | 455 |
| |
458 | 456 |
| |
459 |
| - | |
460 |
| - | |
461 |
| - | |
462 |
| - | |
| 457 | + | |
463 | 458 |
| |
464 |
| - | |
465 |
| - | |
| 459 | + | |
| 460 | + | |
466 | 461 |
| |
467 |
| - | |
468 |
| - | |
469 |
| - | |
470 |
| - | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
471 | 474 |
| |
472 | 475 |
| |
473 | 476 |
| |
|
0 commit comments
Comments
(0)