forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb8ed4cc
committed
Calculate # of semaphores correctly with --disable-spinlocks.
The old formula didn't take into account that each WAL sender process needsa spinlock. We had also already exceeded the fixed number of spinlocksreserved for misc purposes (10). Bump that to 30.Backpatch to 9.0, where WAL senders were introduced. If I counted correctly,9.0 had exactly 10 predefined spinlocks, and 9.1 exceeded that, but bump thelimit in 9.0 too because 10 is uncomfortably close to the edge.1 parentf7b0006 commitb8ed4cc
1 file changed
+11
-3
lines changedLines changed: 11 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
| 26 | + | |
26 | 27 |
| |
27 | 28 |
| |
28 | 29 |
| |
| |||
50 | 51 |
| |
51 | 52 |
| |
52 | 53 |
| |
| 54 | + | |
| 55 | + | |
53 | 56 |
| |
54 | 57 |
| |
55 | 58 |
| |
56 | 59 |
| |
57 |
| - | |
58 |
| - | |
| 60 | + | |
| 61 | + | |
59 | 62 |
| |
60 |
| - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
61 | 69 |
| |
62 | 70 |
| |
63 | 71 |
| |
|
0 commit comments
Comments
(0)