forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit73f0a13
committed
Pass correct count to WALRead().
Previously, some callers requested XLOG_BLCKSZ bytesunconditionally. While this did not cause a problem, because the extrabytes are ignored, it's confusing and makes it harder to add safetychecks. Additionally, the comment about zero padding was incorrect.With this commit, all callers request the number of bytes theyactually need.Author: Bharath RupireddyReviewed-by: Kyotaro HoriguchiDiscussion:https://postgr.es/m/CALj2ACWBRFac2TingD3PE3w2EBHXUHY3=AEEZPJmqhpEOBGExg@mail.gmail.com1 parent9ecbf54 commit73f0a13
File tree
3 files changed
+3
-13
lines changed- src/backend
- access/transam
- postmaster
- replication
3 files changed
+3
-13
lines changedLines changed: 1 addition & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1007 | 1007 |
| |
1008 | 1008 |
| |
1009 | 1009 |
| |
1010 |
| - | |
1011 |
| - | |
1012 |
| - | |
1013 |
| - | |
1014 |
| - | |
1015 |
| - | |
| 1010 | + | |
1016 | 1011 |
| |
1017 | 1012 |
| |
1018 | 1013 |
| |
|
Lines changed: 1 addition & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1318 | 1318 |
| |
1319 | 1319 |
| |
1320 | 1320 |
| |
1321 |
| - | |
1322 |
| - | |
1323 |
| - | |
1324 |
| - | |
1325 |
| - | |
1326 |
| - | |
| 1321 | + | |
1327 | 1322 |
| |
1328 | 1323 |
| |
1329 | 1324 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1099 | 1099 |
| |
1100 | 1100 |
| |
1101 | 1101 |
| |
1102 |
| - | |
| 1102 | + | |
1103 | 1103 |
| |
1104 | 1104 |
| |
1105 | 1105 |
| |
|
0 commit comments
Comments
(0)