forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita1176c6
committed
Simplify some maths in xlogreader.c
An LSN was calculated from a segment number, a segment size and aposition offset, matching exactly the LSN given by the caller ofXLogReaderValidatePageHeader(). This change removes the extra LSNcalculation, relying only on the LSN given by the function callerinstead.Author: Bharath RupireddyReviewed-by: Richard Guo, Álvaro Herrera, Kyotaro HoriguchiDiscussion:https://postgr.es/m/CALj2ACXuh4Ms9j9sxMYdtHEe=5sFcyrs-GAHyADu_A_G71kZTg@mail.gmail.com1 parent94fd253 commita1176c6
1 file changed
+1
-4
lines changedLines changed: 1 addition & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1210 | 1210 |
| |
1211 | 1211 |
| |
1212 | 1212 |
| |
1213 |
| - | |
1214 | 1213 |
| |
1215 | 1214 |
| |
1216 | 1215 |
| |
| |||
1220 | 1219 |
| |
1221 | 1220 |
| |
1222 | 1221 |
| |
1223 |
| - | |
1224 |
| - | |
1225 | 1222 |
| |
1226 | 1223 |
| |
1227 | 1224 |
| |
| |||
1296 | 1293 |
| |
1297 | 1294 |
| |
1298 | 1295 |
| |
1299 |
| - | |
| 1296 | + | |
1300 | 1297 |
| |
1301 | 1298 |
| |
1302 | 1299 |
| |
|
0 commit comments
Comments
(0)