forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdba6e75
committed
Fix ReinitializeParallelDSM to tolerate finding no error queues.
Commitd466335 changed things sothat shm_toc_lookup would fail with an error rather than silentlyreturning NULL in the hope that such failures would be reportedin a useful way rather than via a system crash. However, itoverlooked the fact that the lookup of PARALLEL_KEY_ERROR_QUEUEin ReinitializeParallelDSM is expected to fail when no DSM segmentwas created in the first place; in that case, we end up with abackend-private memory segment that still contains an entry forPARALLEL_KEY_FIXED but no others. Consequently a benign failureto initialize parallelism can escalate into an elog(ERROR);repair.Discussion:http://postgr.es/m/CA+Tgmob8LFw55DzH1QEREpBEA9RJ_W_amhBFCVZ6WMwUhVpOqg@mail.gmail.com1 parentec7629d commitdba6e75
1 file changed
+3
-2
lines changedLines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
399 | 399 |
| |
400 | 400 |
| |
401 | 401 |
| |
402 |
| - | |
| 402 | + | |
403 | 403 |
| |
404 |
| - | |
| 404 | + | |
| 405 | + | |
405 | 406 |
| |
406 | 407 |
| |
407 | 408 |
| |
|
0 commit comments
Comments
(0)