forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit418451b
committed
bufmgr: Make it easier to change number of buffer state bits
In an upcoming commit I'd like to change the number of bits for the usagecount (the current max is 5, fitting in three bits, but we reserve fourbits). Until now that required adjusting a bunch of magic constants, now theconstants are defined based on the number of bits reserved.Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>Discussion:https://postgr.es/m/lxzj26ga6ippdeunz6kuncectr5gfuugmm2ry22qu6hcx6oid6@lzx3sjsqhmt6Discussion:https://postgr.es/m/riivolmg6uzfvpzfn6wjo3ghwt42rcec43ok6mv4oenfg654y7@x7dbposbskwd1 parentcd3ccf8 commit418451b
1 file changed
+15
-5
lines changedLines changed: 15 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
42 | 49 |
| |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
48 | 55 |
| |
49 | 56 |
| |
50 | 57 |
| |
| |||
77 | 84 |
| |
78 | 85 |
| |
79 | 86 |
| |
| 87 | + | |
| 88 | + | |
| 89 | + | |
80 | 90 |
| |
81 | 91 |
| |
82 | 92 |
| |
|
0 commit comments
Comments
(0)