forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit55a5ee3
committed
Fix incorrect calculation in BlockRefTableEntryGetBlocks.
The previous formula was incorrect in the case where the function'snblocks argument was a multiple of BLOCKS_PER_CHUNK, which happenswhenever a relation segment file is exactly 512MB or exactly 1GB inlength. In such cases, the formula would calculate a stop_offset of0 rather than 65536, resulting in modified blocks in the second halfof a 1GB file, or all the modified blocks in a 512MB file, beingomitted from the incremental backup.Reported off-list by Tomas Vondra and Jakub Wartak.Discussion:http://postgr.es/m/CA+TgmoYwy_KHp1-5GYNmVa=zdeJWhNH1T0SBmEuvqQNJEHj1Lw@mail.gmail.com1 parent079d94a commit55a5ee3
1 file changed
+5
-1
lines changedLines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
410 | 410 |
| |
411 | 411 |
| |
412 | 412 |
| |
413 |
| - | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
414 | 418 |
| |
415 | 419 |
| |
416 | 420 |
| |
|
0 commit comments
Comments
(0)