- Notifications
You must be signed in to change notification settings - Fork5
Commit1358466
committed
Fix bootstrap.c so that database startup process and bgwriter properly release
LWLocks during a panic exit. This avoids the possible self-deadlock pointedout by Qingqing Zhou. Also, I noted that an error during LoadFreeSpaceMap()or BuildFlatFiles() would result in exit(0) which would leave the postmasterthinking all is well. Added a critical section to ensure such errors don'tallow startup to proceed.Backpatched to 8.1. The 8.0 code is a bit different and I'm not sure if theproblem exists there; given we've not seen this reported from the field, I'mgoing to be conservative about backpatching any further.1 parente4725e3 commit1358466
1 file changed
+24
-1
lines changedLines changed: 24 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
| 58 | + | |
58 | 59 |
| |
59 | 60 |
| |
60 | 61 |
| |
| |||
395 | 396 |
| |
396 | 397 |
| |
397 | 398 |
| |
| 399 | + | |
| 400 | + | |
| 401 | + | |
398 | 402 |
| |
399 | 403 |
| |
400 | 404 |
| |
| |||
417 | 421 |
| |
418 | 422 |
| |
419 | 423 |
| |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
420 | 429 |
| |
421 | 430 |
| |
| 431 | + | |
422 | 432 |
| |
423 | 433 |
| |
424 | 434 |
| |
| |||
552 | 562 |
| |
553 | 563 |
| |
554 | 564 |
| |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
555 | 578 |
| |
556 | 579 |
| |
557 | 580 |
| |
|
0 commit comments
Comments
(0)