forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit00f690a
committed
Revert "Get rid of the dedicated latch for signaling the startup process".
Revertac22929, as well as the followup fix113d359. Because it brokethe assumption that the startup process waiting for the recovery conflicton buffer pin should be waken up only by buffer unpin or the timeout enabledin ResolveRecoveryConflictWithBufferPin(). It caused, for example,SIGHUP signal handler or walreceiver process to wake that startup processup unnecessarily frequently.Additionally, add the comments about why that dedicated latch thatthe reverted patch tried to get rid of should not be removed.Thanks to Kyotaro Horiguchi for the discussion.Author: Fujii MasaoDiscussion:https://postgr.es/m/d8c0c608-021b-3c73-fffd-3240829ee986@oss.nttdata.com1 parent88e014c commit00f690a
3 files changed
+52
-21
lines changedLines changed: 25 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
681 | 681 |
| |
682 | 682 |
| |
683 | 683 |
| |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
684 | 694 |
| |
685 |
| - | |
| 695 | + | |
686 | 696 |
| |
687 | 697 |
| |
688 | 698 |
| |
| |||
5186 | 5196 |
| |
5187 | 5197 |
| |
5188 | 5198 |
| |
| 5199 | + | |
5189 | 5200 |
| |
5190 | 5201 |
| |
5191 | 5202 |
| |
| |||
6121 | 6132 |
| |
6122 | 6133 |
| |
6123 | 6134 |
| |
6124 |
| - | |
| 6135 | + | |
6125 | 6136 |
| |
6126 | 6137 |
| |
6127 | 6138 |
| |
| |||
6140 | 6151 |
| |
6141 | 6152 |
| |
6142 | 6153 |
| |
6143 |
| - | |
| 6154 | + | |
6144 | 6155 |
| |
6145 | 6156 |
| |
6146 | 6157 |
| |
| |||
6469 | 6480 |
| |
6470 | 6481 |
| |
6471 | 6482 |
| |
6472 |
| - | |
6473 |
| - | |
| 6483 | + | |
| 6484 | + | |
6474 | 6485 |
| |
6475 | 6486 |
| |
6476 |
| - | |
| 6487 | + | |
6477 | 6488 |
| |
6478 | 6489 |
| |
6479 | 6490 |
| |
| |||
7484 | 7495 |
| |
7485 | 7496 |
| |
7486 | 7497 |
| |
7487 |
| - | |
7488 |
| - | |
| 7498 | + | |
| 7499 | + | |
7489 | 7500 |
| |
7490 | 7501 |
| |
7491 |
| - | |
| 7502 | + | |
7492 | 7503 |
| |
7493 | 7504 |
| |
7494 | 7505 |
| |
| |||
12300 | 12311 |
| |
12301 | 12312 |
| |
12302 | 12313 |
| |
12303 |
| - | |
| 12314 | + | |
12304 | 12315 |
| |
12305 | 12316 |
| |
12306 | 12317 |
| |
12307 | 12318 |
| |
12308 |
| - | |
| 12319 | + | |
12309 | 12320 |
| |
12310 | 12321 |
| |
12311 | 12322 |
| |
| |||
12559 | 12570 |
| |
12560 | 12571 |
| |
12561 | 12572 |
| |
12562 |
| - | |
| 12573 | + | |
12563 | 12574 |
| |
12564 | 12575 |
| |
12565 | 12576 |
| |
12566 |
| - | |
| 12577 | + | |
12567 | 12578 |
| |
12568 | 12579 |
| |
12569 | 12580 |
| |
| |||
12735 | 12746 |
| |
12736 | 12747 |
| |
12737 | 12748 |
| |
12738 |
| - | |
12739 |
| - | |
| 12749 | + | |
12740 | 12750 |
| |
12741 | 12751 |
| |
12742 | 12752 |
| |
|
Lines changed: 19 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
| 40 | + | |
40 | 41 |
| |
41 | 42 |
| |
42 | 43 |
| |
| |||
48 | 49 |
| |
49 | 50 |
| |
50 | 51 |
| |
| 52 | + | |
51 | 53 |
| |
52 | 54 |
| |
53 | 55 |
| |
| |||
62 | 64 |
| |
63 | 65 |
| |
64 | 66 |
| |
65 |
| - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
66 | 80 |
| |
67 | 81 |
| |
68 | 82 |
| |
| |||
77 | 91 |
| |
78 | 92 |
| |
79 | 93 |
| |
80 |
| - | |
| 94 | + | |
81 | 95 |
| |
82 | 96 |
| |
83 | 97 |
| |
| |||
123 | 137 |
| |
124 | 138 |
| |
125 | 139 |
| |
126 |
| - | |
| 140 | + | |
127 | 141 |
| |
128 |
| - | |
| 142 | + | |
129 | 143 |
| |
130 | 144 |
| |
131 | 145 |
| |
| |||
158 | 172 |
| |
159 | 173 |
| |
160 | 174 |
| |
161 |
| - | |
| 175 | + | |
162 | 176 |
| |
163 | 177 |
| |
164 | 178 |
| |
|
Lines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
519 | 519 |
| |
520 | 520 |
| |
521 | 521 |
| |
522 |
| - | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
523 | 530 |
| |
524 | 531 |
| |
525 | 532 |
| |
|
0 commit comments
Comments
(0)