forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc91a9b5
committed
Fix backup-block numbering in redo of b-tree split.
I got the backup block numbers off-by-one in the commit that changed theway incomplete-splits are handled. I blame the comments, which said"backup block 1" and "backup block 2", even though the backup blocksare numbered starting from 0, in the macros and functions used in replay.Fix the comments and the code.Per Jeff Janes' bug report about corruption caused by torn page writes.The incorrect code is new in git master, but backpatch the comment changedown to 9.0, where the numbering in the redo-side macros was changed.1 parenteb56812 commitc91a9b5
2 files changed
+10
-10
lines changedLines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1299 | 1299 |
| |
1300 | 1300 |
| |
1301 | 1301 |
| |
1302 |
| - | |
| 1302 | + | |
1303 | 1303 |
| |
1304 | 1304 |
| |
1305 | 1305 |
| |
| |||
1320 | 1320 |
| |
1321 | 1321 |
| |
1322 | 1322 |
| |
1323 |
| - | |
| 1323 | + | |
1324 | 1324 |
| |
1325 | 1325 |
| |
1326 | 1326 |
| |
| |||
1333 | 1333 |
| |
1334 | 1334 |
| |
1335 | 1335 |
| |
1336 |
| - | |
| 1336 | + | |
1337 | 1337 |
| |
1338 | 1338 |
| |
1339 | 1339 |
| |
1340 |
| - | |
| 1340 | + | |
1341 | 1341 |
| |
1342 | 1342 |
| |
1343 | 1343 |
| |
| |||
1353 | 1353 |
| |
1354 | 1354 |
| |
1355 | 1355 |
| |
1356 |
| - | |
| 1356 | + | |
1357 | 1357 |
| |
1358 | 1358 |
| |
1359 | 1359 |
| |
| |||
1386 | 1386 |
| |
1387 | 1387 |
| |
1388 | 1388 |
| |
1389 |
| - | |
| 1389 | + | |
1390 | 1390 |
| |
1391 | 1391 |
| |
1392 | 1392 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
300 | 300 |
| |
301 | 301 |
| |
302 | 302 |
| |
303 |
| - | |
304 |
| - | |
| 303 | + | |
| 304 | + | |
305 | 305 |
| |
306 | 306 |
| |
307 | 307 |
| |
| |||
439 | 439 |
| |
440 | 440 |
| |
441 | 441 |
| |
442 |
| - | |
| 442 | + | |
443 | 443 |
| |
444 | 444 |
| |
445 |
| - | |
| 445 | + | |
446 | 446 |
| |
447 | 447 |
| |
448 | 448 |
| |
|
0 commit comments
Comments
(0)