- Notifications
You must be signed in to change notification settings - Fork5
Commita50d976
committed
Wrap multixact/members correctly during extension
In the 9.2 code for extending multixact/members, the logic was verysimple because the number of entries in a members page was a properdivisor of 2^32, and thus at 2^32 wraparound the logic for page switchwas identical than at any other page boundary. In commit0ac5ad5 Ifailed to realize this and introduced code that was not able to go overthe 2^32 boundary. Fix that by ensuring that when we reach the lastpage of the last segment we correctly zero the initial page of theinitial segment, using correct uint32-wraparound-safe arithmetic.Noticed while investigating bug #8673 reported by Serge Negodyuck, asdiagnosed by Andres Freund.1 parent722acf5 commita50d976
1 file changed
+19
-5
lines changedLines changed: 19 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2259 | 2259 |
| |
2260 | 2260 |
| |
2261 | 2261 |
| |
2262 |
| - | |
2263 | 2262 |
| |
2264 | 2263 |
| |
2265 | 2264 |
| |
| |||
2280 | 2279 |
| |
2281 | 2280 |
| |
2282 | 2281 |
| |
2283 |
| - | |
2284 |
| - | |
2285 |
| - | |
2286 |
| - | |
| 2282 | + | |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
| 2297 | + | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
2287 | 2301 |
| |
2288 | 2302 |
| |
2289 | 2303 |
| |
|
0 commit comments
Comments
(0)